Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Folks,
I have an interesting scenarios in Power BI Matrix visual. First look at the following final output image.
In rows section i have 3 fields TimeZone, Area, and Segmen. In values secton i have some metric.
The ask here is i need to highlight the top 3 and bottom 3 values irrespective of the drill down.
For example, in the above image first TimeZone "Americas" expanded upto Segment level and the other two TimeZones are not expanded upto Segment level. Now the conditional formatting ask is even though below two are not expanded to Segement i still need to consider whatever value is visible in the entire value column and highlight the top 3 and bottom 3.
In the image above bottom 3 values are as follows:
US - EC MFG (Segment level) = 88%
ANZ - Enterprise (Area Level) = 76%
Western Europe - Enterprise (Area Level) = 88%
Top 3 Values are as follows:
Switzerland - Enterprise (Area Level) = 115%
US - HPSI HLS (Segment Level) = 104%
US - EC RCG (Segment Level) = 104%
is there any way we can do this kind of conditional formatting for the visible level values (one is expanded others are not) in matrix visual in Power BI.
@amitchandak @Ritaf1983 @Greg_Deckler @Anonymous @Idrissshatila @danextian @rajendraongole1
Hi,
Thanks for the solution amitchandak offered, and i want to offer some more infotmation for user to refer to.
hello @Anonymous after testing, in matrix, it can filter the top/bottom 3 at the current level, it cannot filter the top3/bottom3 across the level.
Best Regards!
Yolo Zhu
@Anonymous ,
Create two measure like
top =
Rank(dense, Allselected(Table, Table[Zone], Table[Area], Table[Segment]),Orderby([Your Measure], desc),partitionBy(Table[Zone]) )
Bottom = Rank(dense, Allselected(Table, Table[Zone], Table[Area], Table[Segment]),Orderby([Your Measure], asc),partitionBy(Table[Zone]) )
Now using thise you can create another meausre when you have create coloe and use them in conditional formatting using field value option
Color = Switch(true() ,
[Top] =1 || [Bottom]=1, "Green",
// Other coditions
)
You can also use rownumber if needed
Power BI - New DAX Function: RANK - How It Differs from RANKX: https://youtu.be/TjGkF44VtDo
Rownumber- https://www.youtube.com/watch?v=yS9-IQjUDwg&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&index=1
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |