This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 25 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 22 |