Forum Discussion

Hansss's avatar
Hansss
Frequent Visitor
4 years ago
Solved

Transform Start/End date to Stacked Area timeline?

Hi, I have a number of projects with start date and end date stated. I would like to visualize how many projects are active each month, in a stacked area chart or similar. Any input on how I shoul...
  • v-jingzhang's avatar
    v-jingzhang
    4 years ago

    Hi Hansss 

     

    You can first add a Calendar (Date) table to the model, then create the following measure. 

    Active Projects = 
    CALCULATE (
        COUNT ( 'Table'[Project] ),
        'Table'[Start_Date] <= MIN ( 'Calendar'[Date] ),
        'Table'[Finish_date] >= MAX ( 'Calendar'[Date] )
    )
    

    Use Calendar's Month column on the X-axis of the stacked area chart. 

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.