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
I have a bar chart with X-axis in daily buckets and volume on Y -axis. I have a conditonal formatting which says - If my volume is greater than yesterday, color the bar red else Green. I am looking an additonal way to highlight weekends. I tried to add some kind of icons to the chart but I was not able to do it . What would be a better way to highlight weekends in this case where I already have a conditonal format applied for a different logic?
In my data source I have a column to identify day number For e.g. Sunday is 1 and Saturday is 7. Any inputs will be helpful. Thanks in advance.
Let me know if any further information will help address the query.
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous , if you are not using legend,
You can create color measure and use it. example
color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Amit,
Thanks. A variation in dark and light colours kind of worked out as a solution.
Regards,
GB
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Allison,
Thanks a lot for your quick response.
I have already created a quick measure which says if my volume today is greater than previous day then 1 else 0. Based on this measure I have applied the below conditional formatting.
Now while the bar colors will be either Green or Red based on above condition I somehow want to highlight weekends to stand out so I can easily identify which bars belong to weekends. For this as a first step I created a column called Day_Number where Sunday is marked 1 (First day of the week) and Saturday 7 and so on. I tried to do something based on this but I am stuck at this point as I cannot apply multiple conditional formatting on a single quantity. Is there any other way or any other chart options ?
Thanks in advance !
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Allison,
Thank you . This worked out well as a solution.
Regards,
GB
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.