web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to compare values ...
Power Apps
Answered

How to compare values of 2 columns against 2 other columns in another list and show the third column value if true

(0) ShareShare
ReportReport
Posted on by

Hello,

 

For a project I need to create a column in a sharepoint list that contains a conditional/calculated column. This column is the risk value will be "calculated" depending on the values of the risk likelihood and risk consequence. Right now it is a field that users can fill in themselves but they should follow a certain logic.

I have created a seperate sharepoint list "Risk Consequence Calculator" that contains all the values that can be possible for all three columns.

The source sharepoint list is called the "Risk Consequence Calculator"

The sharepoint list where the calculated/conditional column should be filled in is "Info Sec and IT Risk Register"

 

The "Source sharepoint list" that contains all the data:

KrisVerplancke_1-1635493463434.png

 

The list where the users can fill in the data and the risk value should be calculated:

KrisVerplancke_2-1635493592448.png

 

Does anybody know how the code for the column "Risk Value" should look like? 

In my humble opinion I think the logic should be like this:

 

If the value of Info Sec and IT Risk Register. Risk Likelihood = Risk Consequence Calculator.Risk Likelihood

and the value of Info Sec and IT Risk Register. Risk Consequence = Risk Consequence Calculator.Risk Consequence,

Info Sec and IT Risk Register.Risk value = Risk Consequence Calculator.Risk value.

 

Best regards,

 

Kris 

 

 

 

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Anonymous ,

    Are you trying to achieve this via PowerApps or only using the Sharepoint internal tool only ? 

    If is the second option, I recommend to use a PowerApps form to personalize the user experience and also inside this form to set the value of the "Risk Consequence Calculator" column based on user choices in other columns.

    From my knowledge, I don't think that you can achieve your goal using only calculated column from native Sharepoint.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous :

    I've made a test for your reference:

    1\My Lists:

    vbofengmsft_0-1635752990400.png

    vbofengmsft_1-1635752999677.png

     

    2\Create a flow

    vbofengmsft_2-1635753500479.png

    vbofengmsft_5-1635753729020.png

     

    The Result:

    vbofengmsft_4-1635753540894.png

    Best Regards,

    Bof

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-bofeng-msft Thanks for your response! This really helped out. I was on a holiday so I couldn't reply sooner but nevertheless much appreciated.

     

    Grtz, Kris

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard