Forum Discussion
max measure is showing infinity value
hello
i created 2 measures to find the max and min percentage of another measure. the dax code to create the 2 measures is the same the only difference is in the minimum measure i used (minx) and in the maximum measure i used (max). although the 2 measures are exactly the same , the max measure it showing me (infinity ) in case the percentage is greater than 100% and the minimum function is working properly. i cant understand why it's showing inifinty and not the correct percentage
this the code for the minumum percentage measure
this is the code for the max percentage measure
1 Reply
- ValtteriN
Community Champion
Hi,
First, here are some general comments:
1. I recommend using variables for the table you want to use MAXX/MINX for.
2. Use MAXX/MINX as the overall measure, not within CALCULATE
3. With the variable approach you can easily create a calculated table to view if your logic is as expected
With these in mind try something like this:
Example data:Dax:
MAXX achivement =var _vtable = SUMMARIZE('Table','Table'[Category],"achievement measure" , [Achievement overall]) returnMAXX(_vtable,[achievement measure])
Calculated table test:
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/