Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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])
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
66 | |
42 | |
42 |
User | Count |
---|---|
46 | |
38 | |
28 | |
27 | |
26 |