The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a list of items, i want a dax quey that can give me the Minimum and the Maximum Count
Items | Item Count |
Apple | 1 |
Orange | 1 |
Grape | 1 |
Apple | 1 |
Watermelon | 1 |
Apple | 1 |
Orange | 1 |
Grape | 1 |
Apple | 1 |
so here the Max count would be apple with count 4 and minimum would be watermelon with count 1
Solved! Go to Solution.
Hi Sonali,
Here's how you can write the DAX expressions for these measures:
Max Count = MAXX(SUMMARIZE('YourTable', 'YourTable'[Items], "Count", COUNT('YourTable'[Items])), [Count])
Min Count = MINX(SUMMARIZE('YourTable', 'YourTable'[Items], "Count", COUNT('YourTable'[Items])), [Count])
Hi Sonali,
Here's how you can write the DAX expressions for these measures:
Max Count = MAXX(SUMMARIZE('YourTable', 'YourTable'[Items], "Count", COUNT('YourTable'[Items])), [Count])
Min Count = MINX(SUMMARIZE('YourTable', 'YourTable'[Items], "Count", COUNT('YourTable'[Items])), [Count])
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
77 | |
75 | |
43 | |
37 |
User | Count |
---|---|
156 | |
109 | |
64 | |
60 | |
55 |