Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Create Progress Tacker

Hello, I am fairly new to PowerBI and am wondering if the following is possible. I have a list of projects with their start and end dates and am looking to create a bar chart tracker that can shows the number of active projects by each week throughout the year. I was able to create a weeknumber column but the projects only show up on the week they start and do not accumulate over time. 

 

Data format I have:

 

Project NameProject Start DateProject End Date
1January 1, 2021January 15, 2021
2January 5, 2021January 30, 2021
3January 7, 2021February 10, 2021
4January 10, 2021February 2, 2021

 

 

Desired Output Layout

      
     
     
     
Number of Active Projects    
     
     
 12345
 Week Number

 

 

Thanks in advance for any help.

  • Hi Anonymous 

     

    Download sample PBIX file with the following data/chart

     

    Using a measure like this will give you what you need by Week Number.

    Active Projects By WeekNum = CALCULATE(COUNTROWS('Data'), FILTER(ALL('Data'), WEEKNUM('Data'[Project Start Date],1) <= SELECTEDVALUE(DateTable[WeekNumber]) && WEEKNUM('Data'[Project End Date],1) >= SELECTEDVALUE('DateTable'[WeekNumber])))

     

    This is using the Week Number form the DateTable.  See PBIX file above.

     

    Regards

     

    Phil

     

     

2 Replies

  • Hi Anonymous 

     

    Download sample PBIX file with the following data/chart

     

    Using a measure like this will give you what you need by Week Number.

    Active Projects By WeekNum = CALCULATE(COUNTROWS('Data'), FILTER(ALL('Data'), WEEKNUM('Data'[Project Start Date],1) <= SELECTEDVALUE(DateTable[WeekNumber]) && WEEKNUM('Data'[Project End Date],1) >= SELECTEDVALUE('DateTable'[WeekNumber])))

     

    This is using the Week Number form the DateTable.  See PBIX file above.

     

    Regards

     

    Phil

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you PhilipTreacy this is exactly what I needed!