Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
42 | |
40 |