Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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 |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |