Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to reference 2 different values of same measures

Hi,

 

I have a Measure. Lets call it X

 

When I have X slected in a card visualization it equals 2

 

But when I have X (lets call it Xa) as a column in table it shows 1.3 for a specific row (lets call this row A). This varies depending on the row in the table. 4 others rows exist (B,C,D,E)

 

My objective: write a DAX statement IF X < Xa,b,c,d,e then THEN = TRUE, else = FALSE. 

 

After I should be to put this as an additional column in the table and have TRUE/FALSE values depending on the outcome of whether X < X(a,b,c,d,e)

 

I have wasted alot of time figitting around, so help is massively appreicated.

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Your precise desired outcome is unclear as to whether you want to return true if X is less than any of the subsets or one of the subsets, I'll assume any of them (but the logic would be reversed if it's all of them) - try something like:

 

newmeasure = 

var stepa = calculate([oldmeasure], the filter context when you've selected row a)

repeat this for each row

return if ([oldmeasure] < stepa, "true",if ([oldmeasure] < stepb, "true",if ([oldmeasure] < stepc, "true",if ([oldmeasure] < stepd, "true",if ([oldmeasure] < stepe, "true","false")))))

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.