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! Get ahead of the game and start preparing now! Learn more
Hi, my data is structured as below with my expected result (calculated column)
| Group | Number | Calculate Column |
a | 1 | y |
| a | 2 | y |
| a | 3 | y |
| b | 1 | y |
| b | 2 | y |
| b | 3 | y |
| c | 1 | n |
| c | 2 | n |
| d | 1 | n |
so basically I want all the rows in each group to show "y" if one row in the group has the highest number in column b, and to show n if a group does not have the highest number.
my formula that I've tried is listed below, but it has not worked, any help is greatly appreciated
calculated column = if(calculate(countrows(table), group = earlier(group), number = max(number)) > 0, "y", "n")
Solved! Go to Solution.
Hi @mstoppelman
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi I'm guessing at your table name, so replace list with your table name
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Oh I see, that works now thanks so much!
Hi @mstoppelman
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi, thanks for the reply. For the column syntax, is "List" a function? Or a name? When I try to enter the syntax in, PowerBi doesn't have List as a function
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 54 | |
| 41 | |
| 41 | |
| 22 |
| User | Count |
|---|---|
| 171 | |
| 136 | |
| 119 | |
| 80 | |
| 54 |