The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have data that measures various Performance Indicators. I created Parameter Fields to create slicers which will change my charts based on the Performance Indicator Chosen. This is my chart which is working well with the dynamic slicers. I have two dynamic slicers. One is the timeframe selection. The other is the Measure selection.
Timeframe Slicer
Measure Slicer
Example Chart for a Single Line and Overall for Facility
I would like to be able to color the chart above similar to this one, which uses DAX to specify the color it should be based upon comparing the value to the target. I currently have a measure for each Performance Indicator with the coloring needed for that particular Indicator.
Display Performance Indicators Based on Targets
Example DAX for Coloring of Indicator
This is working great, when you have static charts. I want to color my dynamic charts using the appropriate targets, based upon the Performance Indicator or Measure selected. Is there a way I can do this?
Solved! Go to Solution.
I was actually able to get the coloring to work by doing the following:
I was actually able to get the coloring to work by doing the following:
To better display the current DAX information for the coloring, here is my DAX code: