Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
Analitika
Post Prodigy
Post Prodigy

Clustered and stacked column charts BUGS

How to put rules for values?

 

Analitika_0-1609062332477.png

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

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.

legend.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

8 REPLIES 8
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

dunno, couldnt find the pbix file on the folder you shared.





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




StefanoGrimaldi
Resident Rockstar
Resident Rockstar

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:

StefanoGrimaldi_0-1609068474513.png

 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




It is ok, but why this bug appears? 

Icey
Community Support
Community Support

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.

legend.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

StefanoGrimaldi
Resident Rockstar
Resident Rockstar

hey, 

first open the visual format area and click to off the showw all on data colos option as below: 

StefanoGrimaldi_0-1609066425642.png

them click on the formula botton on it and configure with the parameters you want it to color your data and rules:

StefanoGrimaldi_1-1609066855309.png

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 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




@StefanoGrimaldi 

 

I dont have such options, everything up to date

Analitika_0-1609067109269.png

 

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?





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




@StefanoGrimaldi 

 

i know what new chart will fix that but i dont want to recreate more whan 100 visuals

 

https://filebin.net/nyisjovl15hrrade

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.