Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone!
I have the table like this where I need the max value per category. It is so then I can put everything in the same scale. I have the columns 'category' and 'value' butI need to get the column 'max':
category | value | max |
A | 5 | 8 |
A | 8 | 8 |
B | 4 | 4 |
C | 6 | 6 |
B | 4 | 4 |
A | 5 | 8 |
C | 1 | 6 |
Where 'max' is just the top value per category. I would like to have it as a column because I want to calculate the value of 'value'/'max' eventually.
Thanks!
Jon
Solved! Go to Solution.
@Ugarte335 , Create a new column
Maxx(filter(Table, [category] ?earlier([category])),[Value])
Hi @Anonymous
A new measure will help in this situation
MAX_VAL = Calculate(MAX(Table[value],ALLEXCEPT(Table,Table[category]))
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Regards,
Pranit
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
@Anonymous
you can either use Amit's solution
Column = MAXX(FILTER('Table','Table'[category]=EARLIER('Table'[category])),'Table'[value])
or
Column 2 = CALCULATE(max('Table'[value]),ALLEXCEPT('Table','Table'[category]))
Proud to be a Super User!
@Ugarte335 , Create a new column
Maxx(filter(Table, [category] ?earlier([category])),[Value])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |