The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This bug has been around for a while. I'm thinking about just building the charts in deneb because I can hard code the colors and not worry about BS like this. Does anyone else have any solutions? Is there a way to hard code bar charts in DAX?
Power BI Desktop:
Power BI Service after Publish:
Solved! Go to Solution.
Hi @FloridaMan55051 ,
Depending on which type of visual you are using, the location of where to change the color might be in different locations. But, if you go to the format for the columns in the visual, go to color and select the function option.
Then, you can use the formatting option to choose the color based on the column value:
Proud to be a Datanaut!
Private message me for consulting or training needs.
Hi @FloridaMan55051,
Thank you for reaching out to the Microsoft Fabric Community Forum.
We really apologies for the inconvenience, after reviewing the issue of color of bars change when publishing to power bi service from power bi desktop, here are few steps to may resolve the issue.
Dax Query:
BarColor = SWITCH(
TRUE(),
[Category] = "Category1", "#FF5733",
[Category] = "Category2", "#33FF57",
"#3333FF" // Default color
)
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @FloridaMan55051,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @FloridaMan55051,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @FloridaMan55051,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so others can find it easily.
Thankyou.
Hi @FloridaMan55051 ,
Depending on which type of visual you are using, the location of where to change the color might be in different locations. But, if you go to the format for the columns in the visual, go to color and select the function option.
Then, you can use the formatting option to choose the color based on the column value:
Proud to be a Datanaut!
Private message me for consulting or training needs.
User | Count |
---|---|
36 | |
15 | |
11 | |
11 | |
8 |
User | Count |
---|---|
44 | |
44 | |
19 | |
18 | |
17 |