Forum Discussion
How to add a Minimum and Maximum value in Row in Matrix
I have created the above table visual by placing the Category & Manu as Rows and Date as column and Measure [Monthly%] in Values. I want to calculate the Row wise Maximum and Minimum values and those columns need to appear on the right side
- Anonymous2 years ago
Hi Sakthikumar ,
I think you can try to add min and max measures into value fields.
MIN = VAR _SUMMARIZE = SUMMARIZE ( ALLSELECTED ( 'TableName' ), [Category], [MANU], [Date], "Monthly%", [Monthly%] ) RETURN MINX ( FILTER ( _SUMMARIZE, [Category] = MAX ( 'TableName'[Category] ) && [MANU] = MAX ( 'TableName'[MANU] ) ), [Monthly%] )MAX = VAR _SUMMARIZE = SUMMARIZE ( ALLSELECTED ( 'TableName' ), [Category], [MANU], [Date], "Monthly%", [Monthly%] ) RETURN MAXX ( FILTER ( _SUMMARIZE, [Category] = MAX ( 'TableName'[Category] ) && [MANU] = MAX ( 'TableName'[MANU] ) ), [Monthly%] )Turn off Text Wrop.
Then change the column width which you don't need to 0.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi Sakthikumar ,
I think you can try to add min and max measures into value fields.
MIN = VAR _SUMMARIZE = SUMMARIZE ( ALLSELECTED ( 'TableName' ), [Category], [MANU], [Date], "Monthly%", [Monthly%] ) RETURN MINX ( FILTER ( _SUMMARIZE, [Category] = MAX ( 'TableName'[Category] ) && [MANU] = MAX ( 'TableName'[MANU] ) ), [Monthly%] )MAX = VAR _SUMMARIZE = SUMMARIZE ( ALLSELECTED ( 'TableName' ), [Category], [MANU], [Date], "Monthly%", [Monthly%] ) RETURN MAXX ( FILTER ( _SUMMARIZE, [Category] = MAX ( 'TableName'[Category] ) && [MANU] = MAX ( 'TableName'[MANU] ) ), [Monthly%] )Turn off Text Wrop.
Then change the column width which you don't need to 0.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.