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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Obtain MAX of column and display for each row

Hi,

 

I'm trying to obtain the MAX of a particular column and place this as a new Measure within each ROW of the same dataset. Please see the example below:

 

2019-03-12 13_44_10-Book1 - Excel.png

 

Is this possible in DAX and via DirectQuery?

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try the following measure.

Measure =
MAXX ( ALLSELECTED ( Table1 ), Table1[Value] )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try the following measure.

Measure =
MAXX ( ALLSELECTED ( Table1 ), Table1[Value] )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

you can use DAX.

Add new column. Max = MAX(Value)

Max.JPG

Best regards

Timo

Anonymous
Not applicable

Hi Timo,

 

Thanks for the suggestion but this doesn't work with LiveConnection to a Tabular Model. 

 

When I use MAX in LiveConnection I receive the following error message:

 

The report measure MaxValue has a syntax or semantic error at line 1, position 6, reported by Analysis Services: 'Column, 'Value' in table XXX cannot be found or may not be used in this expression.

 

I know this could be added to the Tabular Model, but for reasons I'd rather not go into, this is unfortunately not possible.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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