Forum Discussion

jnixon's avatar
jnixon
Icon for Advocate II rankAdvocate II
6 years ago
Solved

Set Chart X-Axis End Date to Today

Greetings all, It seems Power BI charts can auto-scale the axes or you can specify a Start and/or End.  I'd like to set the end date of my X-Axis to Today - is there a way to do this?  Ideally witho...
  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Hi jnixon ,

     

    Maybe you can do like this.

    1. Create a calendar table.

    Calendar = 
    CALENDAR(
        MIN( 'Table'[Date]),
        TODAY()
    )

    2. Add the [Date] column of the calendar table to the visual and Set it to "Categorical" value.

    3. Check this option.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.