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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to compare calumn value with measure value in visual?

Hello everyone @Greg_Deckler ,

I am looking for a way to dynamically compare two values in a table.

Luca1234_0-1636016158440.png

 

But the LASTMODIFIED value is a column in my dataset and the LatestResult value is calculated measure using this formula:

 
LatestResult =
var MaxDate = CALCULATE(MAXX(RESULT,RESULT[LASTMODIFIED]),
ALLEXCEPT(RESULT,[TC_UUID]))
return MaxDate
 
What I want is to modify the formula above so it doesnt show max date anymore but TRUE or FALSE or 0/1 to show if it is the LatestResult or not.
How can I achieve this? The goal is to later be able to filter out the older results in a PieChart for example, thats why it has do be done dynamically with a measure and not PowerQuery or Calculated Columns.

 

1 ACCEPTED SOLUTION

@Anonymous Should be IF(LatestDate = MAX([LASTMODIFIED],TRUE(),FALSE())

 

If this is in a table visual.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

So for specification I need something like this:

Luca1234_0-1636016711814.png

But I dont know how to reference the LASTMODIFIED column...

Thanks upfront to everyone.

@Anonymous Should be IF(LatestDate = MAX([LASTMODIFIED],TRUE(),FALSE())

 

If this is in a table visual.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors