Forum Discussion
JohannTTG
6 years agoHelper I
Histogram - space for empty bars
Hi, I have a histogram. The x-axis shows the years, the y-axis some values. Now the user can select the years with checkboxes (multiple selection). If the user selects consecutive years (e.g. 2...
- 6 years ago
Hi, JohannTTG
Based on your description, I created data to reproduce your scenario.
Table:
You may create the 'Year' column as below. Its data type is text.
Year = FORMAT('Table'[Date],"yyyy")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.
- 6 years ago
Thank you - your suggestion showed me the way. I convert the x-axis-number to text and this does the job!
JohannTTG
6 years agoHelper I
As screenshot for clarification: I don't want to see 2016 and 2018
- amitchandak6 years agoSuper User
JohannTTG , Does you measure/formula has +0. if so remove and check.
Otherwise.
Can you share sample data.