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
ovonel
Post Prodigy
Post Prodigy

Measure not working?

I have my measure:

 

DIVIDE

(

   SUM(Fact[Hours])  -   CALCULATE (SUM( Fact[Hours2]) ,  ALL(Fact) ,  Fact[Type]="D" ),

   SUM(Fact[Hours])

)

 

 

It works fine.

 

But now I want to use it in another measure to do:

 

SUM(Fact[Hours])   * MAX(MyMeasure)

 

And it doesn’t work…  Why can't I do MAX(MyMeasure)?

1 ACCEPTED SOLUTION
isjoycewang
Super User
Super User

Hi @ovonel,

 

Please refer to MAX Intro article: https://learn.microsoft.com/en-us/dax/max-function-dax

MAX() only references a column. If you want to use MAX(), a quick workaround might be to transform your measure to a calcualated column.

 

Best Regards,

Joyce

View solution in original post

1 REPLY 1
isjoycewang
Super User
Super User

Hi @ovonel,

 

Please refer to MAX Intro article: https://learn.microsoft.com/en-us/dax/max-function-dax

MAX() only references a column. If you want to use MAX(), a quick workaround might be to transform your measure to a calcualated column.

 

Best Regards,

Joyce

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.