Forum Discussion
Anonymous
6 years agoNot applicable
Line chart - avoid plotting anything for NaN on a continuous x-axis
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. Whe...
v-alq-msft
6 years agoCommunity Support
Hi, Anonymous
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.
Anonymous
6 years agoNot applicable
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'