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.
Hello
I am trying to use the dax code below to find a max value. I was able to show the max value but im my chart there are 2 months with the same max value. Is it possible to show only one?
Solved! Go to Solution.
Hi @Anonymous
Use this formula in a measure
MaxCount = MAXX ( VALUES ( 'Table'[month] ), CALCULATE ( COUNT ( [id] ) ) )
Best Regards
Maggie
Hi @Anonymous
Based on my understanding from your information,
The “amount” refers to the number of count of “id”,
the “Unique_Max” returns the count of “id’ for each month,
For example, in the above example, month1 and month2 has the same amount of 5, so what result do you want?
All rows show 5 for column “Unique_Max”, or only one row (month1 or month2?) returns 5?
Please help me clear about your requirement.
Best Regards
Maggie
I am trying to display the result of the formula in a "card visual" in powerBI, but once i have to " 2" Unique_Max such as 5 and 5, the card itself is showing "55" instead of "5". I m tryng to get only one "5".
please let me know if i was able to explain properly
Hi @Anonymous
Use this formula in a measure
MaxCount = MAXX ( VALUES ( 'Table'[month] ), CALCULATE ( COUNT ( [id] ) ) )
Best Regards
Maggie
Hi @Anonymous
would it be possible for you to share the pbix? With dummy data if necessary
Hi @Anonymous
Where exactly within your code do you get the two values??
Hello
In my chart, i m displaying data from Jan to Nov and i have 2 months with the same amount.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |