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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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