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
Hi @Analitika ,
That is caused by "Legend". If the colors of the columns have been defined by "Legend", they can't change according to custom rules at the same time.
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
dunno, couldnt find the pbix file on the folder you shared.
Proud to be a Super User!
ok, try doing this them using DAX
step 1:
Quantity = sum(Salestable[Quantity])
Step 2:
Highest / Lowest Value (subcategory) =
var highestvalue = MAXX(ALLSELECTED(Salestable[Sub Category]),[Quantity])
var lowestvalue = MINX(ALLSELECTED(Salestable[Sub Category]]),[Quantity])
return
IF([Quantity]= highestvalue,”#73B761″,
IF([Quantity]= lowestvalue,”#DB271C”)
you can change around the syntaxys to match your case but this should work.
exambple result:
Proud to be a Super User!
It is ok, but why this bug appears?
Hi @Analitika ,
That is caused by "Legend". If the colors of the columns have been defined by "Legend", they can't change according to custom rules at the same time.
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
hey,
first open the visual format area and click to off the showw all on data colos option as below:
them click on the formula botton on it and configure with the parameters you want it to color your data and rules:
formatting for rules on bar chart do have the limitation that you must enter the rules as a range for what you looking for.
now if you use it as a table you will have more formatting options: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
Proud to be a Super User!
Strange, you say you have power BI desktop up to date to the last version?
cant replicate the error Im using that same chart type and its appearing for me.
can you share the PBIx file with only the visual and some garbage data to see if can replicate the error with it?
Proud to be a Super User!
i know what new chart will fix that but i dont want to recreate more whan 100 visuals
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 |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |