Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Power Bi community
Is it possible to make a colorscale that always pick a specific color for the top customer?
I want to make a color scale so my visuals looks good.
I can chance the colors of the induvidual customers, like this.
My problem is that when new customers become the top customer, Power BI might pick a random color that doesn't look good with the rest of my colors.
What should I do to make power BI automatically pick from the colors I have pre defined in a specific visual?
Solved! Go to Solution.
@ThomasWeppler
Could what i've done here solve it for you? Color kunde rank
I've created the following table to hold the colors
Used Rank on my X-axis here
Created the following measure:
Kunde Rank sales =
VAR _SelectedRank = SELECTEDVALUE(RankedCustomers[Rank])
VAR _Table = ADDCOLUMNS(
SUMMARIZE(
FactSales,
FactSales[Kunde]
),
"Total Sales", CALCULATE(SUM(FactSales[Revenue])),
"Rank", RANKX(
ALL(FactSales[Kunde]), -- Ensure ranking is global across all customers
CALCULATE(SUM(FactSales[Revenue])), -- Value to rank by
,
DESC,
DENSE
)
)
VAR _Revenue = SUMX(FILTER(_Table, [Rank] = _SelectedRank),[Total Sales])
RETURN
_Revenue
And the I've setup conditional formatting like this:
Did I solve your question? Mark my post as a solution! Kudos are appreciated as well as LinkedIn endorsements.
@ThomasWeppler
Could what i've done here solve it for you? Color kunde rank
I've created the following table to hold the colors
Used Rank on my X-axis here
Created the following measure:
Kunde Rank sales =
VAR _SelectedRank = SELECTEDVALUE(RankedCustomers[Rank])
VAR _Table = ADDCOLUMNS(
SUMMARIZE(
FactSales,
FactSales[Kunde]
),
"Total Sales", CALCULATE(SUM(FactSales[Revenue])),
"Rank", RANKX(
ALL(FactSales[Kunde]), -- Ensure ranking is global across all customers
CALCULATE(SUM(FactSales[Revenue])), -- Value to rank by
,
DESC,
DENSE
)
)
VAR _Revenue = SUMX(FILTER(_Table, [Rank] = _SelectedRank),[Total Sales])
RETURN
_Revenue
And the I've setup conditional formatting like this:
Did I solve your question? Mark my post as a solution! Kudos are appreciated as well as LinkedIn endorsements.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.