Forum Discussion

EraseEgo's avatar
EraseEgo
Frequent Visitor
6 years ago
Solved

X axis interval length

I am plotting the TSA Checkpoint throughput data available at https://www.tsa.gov/coronavirus/passenger-throughput using Power BI. I have restricted the data from March 1st until the latest availabl...
  • mahoneypat's avatar
    6 years ago

    You can add columns to your table to get week, month, etc.  Here is a quick way to get approximately half the number of dates in a calculated column (use your Date column instead of what is shown), and when you use it on the X axis, use a SUM( ) measure (so both rows with that "date" are added)..

     

    OddDays = If(ISODD(Day('Date'[Date])), 'Date'[Date], 'Date'[Date]-1)
     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat