Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Can anyone help me? I got stuck by getting the highest number per group.
Here is my sample table:
| Contacts | Question | System | Response |
| A | Question 1 | Vendor 1 | 8 |
| A | Question 1 | Vendor 2 | 4 |
| A | Question 2 | Vendor 1 | 9 |
| A | Question 2 | Vendor 2 | 7 |
| B | Question 1 | Vendor 1 | 9 |
| B | Question 1 | Vendor 2 | 5 |
| B | Question 2 | Vendor 1 | 9 |
| B | Question 2 | Vendor 2 | 7 |
I need to get the max/biggest number per Contacts and Question.
This is the expected output:
| Contacts | Question | System | Response | Max | IsMax |
| A | Question 1 | Vendor 1 | 8 | 8 | 1 |
| A | Question 1 | Vendor 2 | 4 | 8 | 0 |
| A | Question 2 | Vendor 1 | 9 | 9 | 1 |
| A | Question 2 | Vendor 2 | 7 | 9 | 0 |
| B | Question 1 | Vendor 1 | 9 | 9 | 1 |
| B | Question 1 | Vendor 2 | 5 | 9 | 0 |
| B | Question 2 | Vendor 1 | 9 | 9 | 1 |
| B | Question 2 | Vendor 2 | 7 | 9 | 0 |
Solved! Go to Solution.
@Anonymous
Try
Max=
CALCULATE (
MAX ( Table1[Response] ),
ALLEXCEPT ( Table1, Table1[Contacts], Table1[Question] )
)
@Anonymous
Try
Max=
CALCULATE (
MAX ( Table1[Response] ),
ALLEXCEPT ( Table1, Table1[Contacts], Table1[Question] )
)
Thank you! This works!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 107 | |
| 64 | |
| 36 | |
| 36 |