Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have time series data, with occasional missing values or NaN's.
I want to plot the data in a line chart, but do not want to plot anything when the data is either missing or a NaN. When using a continous x-axis, the line chart effectively interpolates by plotting a straight line between the times before and after. I want the line to be discontiuous in these cases. Can this be done in any way?
Setting the x-axis to categorical works, but also messes up the formatting of the labels.
Hi, @mrtn
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may set 'Type' for 'X-axis' as 'Categorical' and set 'Show items with no data' as on.
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-alq-msft,
thanks a lot for the input.
The proposed solution does not work in my case.
The time stamps in my dataset are irregular, meaning that the interval between each measurement varies. The spacing of the points on the x-axis is not displayed correctly when selecting the 'Type' as 'Categorical'
@mrtn , I think these are the only two options.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |