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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ashjas
Regular Visitor

highlight top N% in matrix with multiple rows and columns

I have a matrix and I have a 3-row header - VP Name, Manager Name, Role

then I have a Column which has two headers - no of hours by each role and the total of their rate.

 

Under rate and total, I want to highlight top 15% value as we have it in excel ( Pivot tabl

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @ashjas ,

 

Please use Field value.

 

Create a measure like this:

Measure =
VAR _s =
    SUMMARIZE (
        FILTER ( ALLSELECTED ( 'Source' ), [Country] = "usa" ),
        [Sr Manager],
        [Manager],
        [Product],
        [Period Qtr],
        [Period Month],
        [Country],
        "sum", SUM ( Source[Sales] )
    )
RETURN
    IF (
        SELECTEDVALUE ( Source[Country] ) = "usa"
            && SUM ( Source[Sales] ) > PERCENTILEX.EXC ( _s, [sum], 0.75 ),
        "red"
    )

Result:

 

vchenwuzmsft_0-1660893433338.png

 

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

4 REPLIES 4
v-chenwuz-msft
Community Support
Community Support

Hi @ashjas ,

 

Please use Field value.

 

Create a measure like this:

Measure =
VAR _s =
    SUMMARIZE (
        FILTER ( ALLSELECTED ( 'Source' ), [Country] = "usa" ),
        [Sr Manager],
        [Manager],
        [Product],
        [Period Qtr],
        [Period Month],
        [Country],
        "sum", SUM ( Source[Sales] )
    )
RETURN
    IF (
        SELECTEDVALUE ( Source[Country] ) = "usa"
            && SUM ( Source[Sales] ) > PERCENTILEX.EXC ( _s, [sum], 0.75 ),
        "red"
    )

Result:

 

vchenwuzmsft_0-1660893433338.png

 

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

ashjas
Regular Visitor

Can someone please help?

amitchandak
Super User
Super User

@ashjas ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Please find attached.

 

Excel file has sample data

1.png shows how the solution can be implemented in excel.

2.png is the end result and I want to replicate the same in power bi

 

1.png2.png

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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