Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I'd like to build a bar chart (multiple bars) with formatting colors based on range data values, like we do in Excel. How can we do that in Power BI ? Thank you
Solved! Go to Solution.
Hi @Souheyl11
Assume your table has two columns called "name", "value", then create a calculated column to define which data range each value belongs to.
data range = SWITCH(TRUE(),[value]<50, "<50",[value]>=50&&[value]<80,"50~80",[value]>=80,">=80")
Then add these columns to the Stacked column chart and go to "Format" pane ->"Data colors"
Best Regards
maggie
Hi @Souheyl11
Assume your table has two columns called "name", "value", then create a calculated column to define which data range each value belongs to.
data range = SWITCH(TRUE(),[value]<50, "<50",[value]>=50&&[value]<80,"50~80",[value]>=80,">=80")
Then add these columns to the Stacked column chart and go to "Format" pane ->"Data colors"
Best Regards
maggie
Thank you, it is a good workaround however I have severals value columns so I've to do it for each value column.
Thanks
Hi @Souheyl11
If these value columns color based on the same data range rule, when you add serveral value columns in the "value" field, they would automatically show the color with the legend.
Best Regards
Maggie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |