Join 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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello, I have a dax function that gives me the following results:
>>> What I would like to do is attribute a different color to the bars starting from Feb so that it's visual enough to distingush between actuals and forecast. Can anyone help me with this? is there a way to add color formating with my actual dax?
Hi @Anonymous
If you need to change the color of data after February, you can try the following methods:
First of all, I created a sample and a measure:
color =
VAR _B = MAXX('Table',MONTH('Table'[Date]))
RETURN
IF(_B>=2,"red","Blue")
A bar chart was then created
In the visualizations pane under Formatt your visual, search for Columns and click fx under Color:
Then select Field value, and select the measure you just created in What field should we base this on.
The result is as follow:
Best Regards,
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous
This did not work as I am using grouped bar chart I guess..
I dont get the option to select fx:
Would you have another work around?
Thanks,
Ekta
User | Count |
---|---|
11 | |
9 | |
6 | |
5 | |
4 |