Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I have a table called App with three calculated columns Level1, Level2, Level3, Level4, Level5.
Level1 | Level2 | Level3 | Level4 | Level5 |
0 | 2 | 3 | 0 | 5 |
1 | 2 | 0 | 0 | 0 |
1 | 0 | 0 | 4 | 0 |
0 | 0 | 3 | 0 | 5 |
I need to write a calculated column formula to find the max of each row. For example: For row1: Max of 0,2,3,0,5 is 5 and likewise for all rows.
Solved! Go to Solution.
@Khushboo9966 here is my recommendation, if it is a DQ, I would recommend adding view at the backend and having this column calculated there (this is a way to go) but if you cannot do that then do this:
Column = MAXX ( UNION ( { [Level1] }, { [Level2] }, { [Level3] }, { [Level4] }, { [Level5] } ), [Value] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Khushboo9966 here is my recommendation, if it is a DQ, I would recommend adding view at the backend and having this column calculated there (this is a way to go) but if you cannot do that then do this:
Column = MAXX ( UNION ( { [Level1] }, { [Level2] }, { [Level3] }, { [Level4] }, { [Level5] } ), [Value] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I was missing the UNION association. Do you mind explaining the formula?
Doing this in power query would probably be the easiest way
This is the error I get: The syntax for 'Max' is incorrect. (DAX(List.Max({'App'[Level 1],'App'[Level 2],'App'[Level 3],'App'[Level 4],'App'[Level 5]}))).
@Khushboo9966 are you looking for a PQ or DAX solution?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I am looking for Calculated Column DAX. The data is coming from direct query so PQ is not an option.