Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello!
Is it possible to calculate "max_value_category2" in the table below with the measure expression?
I want to output category2 when value is max with a measure expression.
Thank you.
Solved! Go to Solution.
Hi @Anonymous
Create a measure like this:
Measure =
Var _A = CALCULATE( MAX ( 'Table'[Value] ) , ALLEXCEPT ( 'Table', 'Table'[Category1] ))
return
if ( MAX ( 'Table'[Value] ) = _A , 1, 0)
then add Cat 1 and 2 to the table visual, and add Measure to the filter pane of that table visual and set a filter to show the value 1:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @Anonymous
Create a measure like this:
Measure =
Var _A = CALCULATE( MAX ( 'Table'[Value] ) , ALLEXCEPT ( 'Table', 'Table'[Category1] ))
return
if ( MAX ( 'Table'[Value] ) = _A , 1, 0)
then add Cat 1 and 2 to the table visual, and add Measure to the filter pane of that table visual and set a filter to show the value 1:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hello, Thank you for answering!
This is a great idea. However, I want to display it without the category 2 column.
I want the measure expression to have a category 2 value.
Thank you.
@Anonymous
You can remove Cat 1 column from the table and it will work fine, otherwise if you are looking for different type of output, please share more details.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hello,‘@VahidDM ‘
Thank you for answering.
I'm sorry for the unclear intention.
I want to create "value_max" in the target table with a major expression.
I want to display the value when the value count is maximized.
thank you.
@Anonymous
why count value of b is 6 not 4 when the slicer is day >=2022/1/3?
Proud to be a Super User!
Hi @ryan_mayu Thank you for answering.
I'm sorry. That is my mistake.
It doesn't matter which character is displayed when the count is the same.
thank you.
Hello, thank you very much for your help. I made a major formula using your thoughts, and maybe I could have made it. I am very grateful. If you have any questions, please let me know.
thank you.
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 |
---|---|
76 | |
74 | |
57 | |
38 | |
33 |
User | Count |
---|---|
71 | |
65 | |
58 | |
50 | |
47 |