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 September 15. Request your voucher.
Hi guys,
I have a bar chart that represent risks.
I want to change the color for the 3 higher risk where the value is the most elevated.
I don't want to change color based to static value like >100 but by 3 top higher values of my chart
How can i do this?
@Anonymous
First create a measure which identifies the top N values. Check following 2 links on how you can achieve that.
https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/
https://databear.com/power-bi-dax-topn-function/
If you have a clustered column chart then go to 'Data Colors' and click the fx button next to 'Default Color'
On the pop up screen select 'Format By': Field Value
Then select the measure that you created previously. See image below
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |