Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am consistently experiencing an issue with the Line Chart visual in Power BI Desktop (current version, December 2023)
If I create a visual with more than one series, turn data labels on (Format visual - Data labels), select just one series in 'Apply settings to' (Format visual - Data labels - Apply settings to - Series) and set the data label value (Format visual - Data labels - Value - Field) to display a different field the value field is only displayed when the series is shown on the primary y-axis. If the that value is on the secondary y-axis, the value field is ignored and the original value for the series is shown in the data label.
Here are steps to recreate:
Example, using the below csv data as a source, sample_data (Get data - Text/CSV - select file with CSV data matching below):
date,value
2024-01-01,971
2024-02-01,969
2024-03-01,966
2024-01-01,800
2024-02-01,800
2024-03-01,800
Adding three calculated measures :
BLANK(),
FORMAT(TIME(TRUNC(DIVIDE(SUM('sample_data'[value]),60)),ROUND(MOD(SUM('sample_data'[value]),60),0),0),"Short Time")
Creating a Line Chart visual with the following values:
Turning data labels on the visual on:
Results in the following chart:
Switching the data label value field to 'display' results i both values in the visual updating to the correct value:
Moving value_sum to the secondary axis has no impact to the displayed data labels on each line (from my 'display' field):
If unset the value field in the 'All' Series the data labels to no longer utilize a value field, the data labels switch back to their original values:
If I now change the value field on the data labels for just the 'value_sum' series (currently on secondary y-axis) to the 'display' field, the graph does not change. As we saw previously, the 'display' value for date 2024-02-01 is '05:29', and this series should be showing the 'display' value, but instead, but instead I am still seeing the same 1769 (actual value of 'value_sum' series):
If I move the 'value_sum' field back to the primary y-axis, the displayed data label updates to correctly utilize the 'display' value (of '05:29') configured in the data label value field:
So it seems the value field is not being respected on a line chart where there are multiple series, and the value field is only set on a single series.
This seems like a true bug? Has anyone else experienced this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.