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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DataMarsh
Frequent Visitor

Max results in infinity

Hi I am trying to create the max value for my dataset, my DAX calc results in "Infinity". 

I have created a measure to determine the Density of my dataset for each "Entry": 

Density = CALCULATE(SUM(Sheet1[Count]), Sheet1[Type] <> "Logged")/CALCULATE(SUM(Sheet1[Count]), Sheet1[Type] = "Logged")
 
I then need the max for this as well, for which I tried this calc: MaxDensity = MAXX(ALL(Sheet1),[Density]
20231229 Power BI Max Infinity.jpg


The MaxDensity should be 26.01 for all the Entry values, any ideas? 

1 ACCEPTED SOLUTION

Hi @DataMarsh 

You can try the following measure

MaxDensity =
VAR a =
    SUMMARIZE ( ALLSELECTED ( Sheet1 ), [Entry], "Density", [Density] )
RETURN
    MAXX ( a, [Density] )

Best Regards!

Yolo Zhu

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
Kishore_KVN
Super User
Super User

Hello @DataMarsh ,

Is there any possibility that you can share the pbix file to look at the error. 

Hi Kishore, thanks, I have originally attempted this - I have the PBIX file ready but I cannot see how to upload it to this post, any ideas?

Hi @DataMarsh 

You can try the following measure

MaxDensity =
VAR a =
    SUMMARIZE ( ALLSELECTED ( Sheet1 ), [Entry], "Density", [Density] )
RETURN
    MAXX ( a, [Density] )

Best Regards!

Yolo Zhu

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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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