Forum Discussion
Histogram - space for empty bars
- 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!
As screenshot for clarification: I don't want to see 2016 and 2018
JohannTTG , Does you measure/formula has +0. if so remove and check.
Otherwise.
Can you share sample data.
- JohannTTG6 years agoHelper I
Thanks for your quick reaction.
There are values > 0 for every (!) year. All the user wants is to remove the gaps for non-selected years.
- JohannTTG6 years agoHelper I
If I look at the data as a table then I do not see data for the not-selected year.
- v-alq-msft6 years agoCommunity Support
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.