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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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