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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TomaKavi
Helper I
Helper I

Dax different column value

Hello guys

 

any idea how can I get a resulf for measure with the same row context but from different column (same table) ? As you can see I have done a calculation for the latest date. But I need another value which is string and I cant use Max neither Maxx there. So I was wondering if there is a way how to swtich that for another value in different column perhaps? Lets say instead of fomrs[updatedAt] use column forms[updatedAt2]

Last Update =

VAR datemaxxx =
    CALCULATE (
        MAX ( forms[updatedAt] ),
        silver_forms[type] = "blue"
    )
RETURN
datemaxxx
1 REPLY 1
Anonymous
Not applicable

Hi @TomaKavi 

 

Maybe you can try to use the SELECTEDVALUE() function.

The columns of string type can use selectedvalue() function to output.

And you can use it nested with CALCULATE() function.

This link for your reference:

SELECTEDVALUE function - DAX | Microsoft Learn

 

Best Regards

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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.