March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Community,
Is it possible to see in a column like below The 3 best and the 3 worst with.
Thank you
Solved! Go to Solution.
Hi @Milozebre ,
Try to do like this:
1. creating a calculated column:
Rank =
RANKX(
'Sheet1 (2)',
[quantity],
, ASC, Dense
)
2. creating a measure:
Color =
VAR x =
CALCULATE(
MAX([Rank]),
ALL('Sheet1 (2)')
)
RETURN
IF(
MAX([Rank]) >= 1 && MAX([Rank]) <= 3,
"red",
IF(
MAX([Rank]) <= x && MAX([Rank]) >= x-2,
"green"
)
)
3. adding the measure to "Conditional formatting->Background color":
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Milozebre ,
Try to do like this:
1. creating a calculated column:
Rank =
RANKX(
'Sheet1 (2)',
[quantity],
, ASC, Dense
)
2. creating a measure:
Color =
VAR x =
CALCULATE(
MAX([Rank]),
ALL('Sheet1 (2)')
)
RETURN
IF(
MAX([Rank]) >= 1 && MAX([Rank]) <= 3,
"red",
IF(
MAX([Rank]) <= x && MAX([Rank]) >= x-2,
"green"
)
)
3. adding the measure to "Conditional formatting->Background color":
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hil @v-lionel-msft ,
Thank you very much for your reply.
Its perhaps a stupid question but what's "sheet1 (2)"
Hello @luapdoniv ,
Thank you for the reply.
I want to see the same view like that.
If not, only the highlighted 🙂
Thnak you in advance
This is the closest I could get.
Highlight top 3 values by conditional format as background color and highlight bottom 3 values by conditional format as font color
OR
Highlight top 3 values by conditional format as background color and highlight bottom 3 Names by conditional format as background color
Will continue R&D to see if your requirement can be achieved. Let me know if this helps.
This is the closest I could get:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |