Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Calculated value based on text values in two other columns - matrix lookup

(0) ShareShare
ReportReport
Posted on by 11

First time posting. Just getting into Dataverse.

 

I am looking for a way to set the value of a column based on the values from two other columns.

 

You can think of the values as being pulled from a matrix like this:

evgiles_0-1681521124397.png

 

For example, if the "Operational Risk Level" column is set to Medium and the "Data Classification" column is set to Sensitive, I want to set a value of High in the "Inherent Risk" column.

 

I am looking to avoid using anything outside of Dataverse to set this value (i.e., I do not want to set the value using Power Automate).

 

Currently, I am the value using a very long series of If-then-else statements which is not very scalable (in case I ever want to do something similar) and I am concerned about how well this might work in the end.  I have to believe there is a better way of doing this.

 

Any ideas?

 

Thanks.

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Calculated value based on text values in two other columns - matrix lookup

    Hi @evgiles,

    Unfortunately within the same table it's not possible, formula columns would be the way to go. You can create a matrix tbale to configure the Inherent Risk, like a "Inherent Risk Configuration" table that has 3 global choice columns; "Operational Risk Level" , "Data Classification" and "Inherent Risk". Then as you already mentioned with a Power Automate flow, lookup the correct Inherent Risk form that table...

    Feel free to submit that idea however at: https://ideas.powerapps.com/d365community/forum/f1458c72-ae29-ed11-9db2-000d3a8c451e

    Hope this helps!

  • evgiles Profile Picture
    11 on at
    Re: Calculated value based on text values in two other columns - matrix lookup

    Eric,

    Thanks for this suggestion.  I am trying that for another column, and it seems to be working okay, but it sure takes a long time to construct it and it's not very scalable. 

     

    It would be great to have something akin to a two dimensional array lookup.  That way this type of configuration might be easily maintained in a table.

     

    Appreciate the quick response,

    Ed

     

     

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Calculated value based on text values in two other columns - matrix lookup

    Hi @evgiles,

    You can use Formula column in Dataverse for the "Inherent Risk" columnn with a switch statement that will be a little better than ifs. 

    More info: https://learn.microsoft.com/power-apps/maker/data-platform/formula-columns

    Hope this helps!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics