Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, All,
I have a table with tasks and start/end dates (example below). My goal is to create a histogram or something that will show the count of active tasks per day, but I can't figure this one out. Any ideas?
Task | Start | Finish |
Learn Power BI | 1/1/22 | 6/1/22 |
Love Power BI | 1/1/22 | 4/1/22 |
Hate Power BI | 3/15/22 | 4/15/22 |
So in this case, for 3/30/22, the count would be 3.
Solved! Go to Solution.
Hi, @StillLearning1 ;
You could change it.
count_tasks = COUNTROWS(FILTER('Table1',Table1[Current_Start]<=MAX('New'[Date])&&Table1[Current_Finish]>=MIN('New'[Date])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi, @StillLearning1 ;
You could change it.
count_tasks = COUNTROWS(FILTER('Table1',Table1[Current_Start]<=MAX('New'[Date])&&Table1[Current_Finish]>=MIN('New'[Date])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Perfect, thanks!
Hi, @StillLearning1 ;
I tested it in clustered column visual and it right.
so can you share a simple file ? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I figured it out actually, just had an typo in my measure.
One more question though, when shuffling through the date hierarchy, I notice that for month, quarter, and year it only takes the last day of the time period. E.g. when it's summarized by year, I'm only getting results for tasks on 12/31. Is there anyway to get a count of active tasks for different time periods?
I updated the dashboard with more relevant data:
Given Tasks with start date and end date.pbix
Password: mUavaC7ffR
https://tutorperini.egnyte.com/dl/oBUSgsapXD
Thanks! I feel like this is going in the right direction, however, when I try to make a chart (column in this case), it doesn't appear to be working. Any ideas? The goal is to have to a chart that shows how many tasks are active on any given day.
Hi, @StillLearning1 ;
You could create a new table .
New = CALENDAR(MIN('Table'[Start]),MAX('Table'[Finish]))
Then create a new measure to count.
count = COUNTROWS(FILTER('Table',[Start]<=MAX('New'[Date])&&[Finish]>=MAX('New'[Date])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |