Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
98 | |
38 | |
37 |
User | Count |
---|---|
157 | |
120 | |
74 | |
72 | |
63 |