Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.