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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors