Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a report that is like a league table. Is it possible to have, for a given column, conditional formatting rules that will highlight the top 3 values within this column? Actually I want each 3 values to be a slightly different colour to distinguish between the best, 2nd best and 3rd best in that column.
I intend to do similar rules to many columns, and having all rows rather than just the top 3 in each column formatted doesn't look nice. Having a "top 3" is the key thing but the formatting rules don't appear to allow it.
Solved! Go to Solution.
@PetyrBaelish, try this:
1. Create the following measures:
Category Rank =
RANKX ( ALL ( TestData[Category] ), CALCULATE ( SUM ( TestData[Amount] ) ), , ASC, Dense )
Category Rank Color =
SWITCH ( [Category Rank],
1, "#CDE7FF",
2, "#72BCFF",
3, "#1B92FF"
)
2. Add [Category Rank] (and other fields) to a matrix.
3. Add conditional formatting to [Category Rank] as follows: format by Field value, based on field Category Rank Color.
Proud to be a Super User!
@PetyrBaelish, try this:
1. Create the following measures:
Category Rank =
RANKX ( ALL ( TestData[Category] ), CALCULATE ( SUM ( TestData[Amount] ) ), , ASC, Dense )
Category Rank Color =
SWITCH ( [Category Rank],
1, "#CDE7FF",
2, "#72BCFF",
3, "#1B92FF"
)
2. Add [Category Rank] (and other fields) to a matrix.
3. Add conditional formatting to [Category Rank] as follows: format by Field value, based on field Category Rank Color.
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |