Forum Discussion

Macks's avatar
Macks
Frequent Visitor
4 years ago
Solved

Comparing a selected Value from one table to All values in another table.

Hi Power Bi community, I am relatively new to Power bi, I feel like this should be simple but i cannot figure it out. Essentially I am trying to compare a single selected value in one table against...
  • v-chenwuz-msft's avatar
    4 years ago

    Hi Macks ,

     

    You can try this expression to reach that.

    check =
    IF (
        ISBLANK ( SELECTEDVALUE ( Table1[prices] ) ),
        "Please select one value",
        IF (
            SELECTEDVALUE ( Table2[Thresholds] ) > SELECTEDVALUE ( Table1[prices] ),
            1,
            0
        )
    )
    

     

    Result:

    Pbix in the end you can refer.

    Best Regards

    Community Support Team _ chenwu zhu

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.