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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 64 | |
| 50 | |
| 45 |