Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Sakthikumar
Regular Visitor

How to add a Minimum and Maximum value in Row in Matrix

Sakthikumar_0-1725347761444.png

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 

Monthly% = IF(OR([Percent_of_Parent_Row_Total_SIM]<>BLANK(),[Percent_of_Parent_Row_Total_BAU]<>BLANK()),[Percent_of_Parent_Row_Total_BAU] -[Percent_of_Parent_Row_Total_SIM],0)

Percent_of_Parent_Row_Total_BAU =
DIVIDE(
    [Sales_BAU],
    CALCULATE(
        [Sales_BAU],
        ALLSELECTED(Base[MANU])
    ),
    0
)
 
Percent_of_Parent_Row_Total_SIM =
DIVIDE(
    [Sales_SIM],
    CALCULATE(
        [Sales_SIM],
        ALLSELECTED(Base[MANU])
    ),
    0
)
1 ACCEPTED SOLUTION
Anonymous
Not 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.

vrzhoumsft_0-1725433135203.png

vrzhoumsft_1-1725433207699.png

Then change the column width which you don't need to 0.

vrzhoumsft_2-1725433254157.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
Anonymous
Not 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.

vrzhoumsft_0-1725433135203.png

vrzhoumsft_1-1725433207699.png

Then change the column width which you don't need to 0.

vrzhoumsft_2-1725433254157.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors