Forum Discussion

JohannTTG's avatar
JohannTTG
Helper I
6 years ago
Solved

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...
  • v-alq-msft's avatar
    v-alq-msft
    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.

     

  • JohannTTG's avatar
    JohannTTG
    6 years ago

    Thank you - your suggestion showed me the way. I convert the x-axis-number to text and this does the job!