March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need to highlight the bar for the latest month with a deviating colour in a combination chart.
Preferably not just the latest month but the value for that month in the past years of data being shown.
How can this be done?
Solved! Go to Solution.
I was unable to highlight the bars in the combo-diagram, but I could conditionally format the Total-labels per bar.
Hi @Ardydardy
@SamWiseOwl Thank you very much for your prompt reply, please allow me to share some content here.
As you know, there is no way to highlight it. However, you can try presenting the data in other ways, such as:
Create a date table, dynamically obtain the latest date, and display the same month data by selecting the date through the slicer.
Create a table.
DATE =
CALENDAR(
DATE(YEAR(TODAY()), MONTH(TODAY()), DAY(TODAY())),
DATE(YEAR(TODAY()), MONTH(TODAY()), DAY(TODAY()))
)
Create a slicer.
Create a measure.
Measure =
var _date = MONTH(SELECTEDVALUE('DATE'[Date]))
RETURN
IF(
ISFILTERED('DATE'[Date]),
CALCULATE(
SELECTEDVALUE('Table'[value]),
FILTER(
'Table',
MONTH('Table'[date]) = _date
)
),
SELECTEDVALUE('Table'[value])
)
Create a visual.
When you select a date in the slicer, visual dynamically displays the data for the same month.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was unable to highlight the bars in the combo-diagram, but I could conditionally format the Total-labels per bar.
I've booked this for a re-read, very cool!
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Yes, unfortunately I need to have either 2 y-axis series/columns or a legend in the combo chart.
Hi @Ardydardy ,
Create a measure similar to this but with your column names:
If this helps please mark the answer as solved so others can find it.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Thanks SamWiseOwl, but is unfortunately not possible for me to choose to use a formula in the bar colour section, there is no such option:
Do you have something in the legend? Or two items in the column y-axis?
You can't have multiple series and conditional formatting.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |