Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello!
I need to create a measure that will dynamically change bar/line chart colors for multiple measures.
Below is what i created and it's only working for first meausre i am referring (2022 ratio).
Please help..!!
Hi @Anonymous
Do you mean the red part is working but the blue part is not working? If so, we need some sample data and the measure [2021 Ratio], could you please provide them? Thanks.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous the condition itself is not going to dictate the solution, you need to provide sample data and your measure to understand the calculation. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k,
Please see below. 2021 Ratio is calcuated same logic as 2022 and baseline is a static #.
[Baseline] = 0.1235
[2022 Ratio] = ([2022 # of Purchase Products])/([2022 # of Total Products])
[2022 # of Purchase Products] = CALCULATE(COUNT('Product'[Product # Purhcased],Filter(Date,Date[Year]=2022))
[2022 # of Total Products] = CALCULATE(COUNT('Product'[Product #],Filter(Date,Date[Year]=2022))
Thank you
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |