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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
OlegP
New Member

Matrix Min&Max by different aggregation in the same table

I would appreciate a little help on the following topics

  1. Create Conditional Formatting for min & max values for each row for each aggregation (group by)
  2. Add new calc column at the end of the pivot table (for example STDV for each row) for each aggregation (group by)
  3. File Here
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @OlegP ,

You can try to use following measure formula to replace original value field and enable conditional formatting on it.

Measure =
IF (
    ISINSCOPE ( Sheet1[TypeString] ) && ISINSCOPE ( Sheet1[GroupNLPRuleName] )
        && ISINSCOPE ( Sheet1[NLPRuleName] ),
    COUNT ( Sheet1[ExpertOperationID] ),
    IF (
        COUNT ( Sheet1[ExpertOperationID] ) > 0,
        STDEVX.S (
            SUMMARIZE (
                Sheet1,
                [TypeString],
                [GroupNLPRuleName],
                [NLPRuleName],
                "Count", COUNT ( Sheet1[ExpertOperationID] )
            ),
            [Count]
        )
    )
)

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
OlegP
New Member

I would appreciate for help on the following topics

  1. Create Measure (for conditional formatting) for min & max values for each row for each aggregation (group by) in the matrix. 
  2. Add new calc column at the end of the matrix (for example STDV for each row) for each aggregation (group by)

ExampleFile

Anonymous
Not applicable

HI @OlegP ,

You can try to use following measure formula to replace original value field and enable conditional formatting on it.

Measure =
IF (
    ISINSCOPE ( Sheet1[TypeString] ) && ISINSCOPE ( Sheet1[GroupNLPRuleName] )
        && ISINSCOPE ( Sheet1[NLPRuleName] ),
    COUNT ( Sheet1[ExpertOperationID] ),
    IF (
        COUNT ( Sheet1[ExpertOperationID] ) > 0,
        STDEVX.S (
            SUMMARIZE (
                Sheet1,
                [TypeString],
                [GroupNLPRuleName],
                [NLPRuleName],
                "Count", COUNT ( Sheet1[ExpertOperationID] )
            ),
            [Count]
        )
    )
)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors