Forum Discussion
Show Tasks in specific month using date slicer
- 6 years ago
Hi, Haya
Based on your description, I created data to reproduce your scenario.
You may create a Date table as follows.
Calendar = CALENDARAUTO()Then you can create a measure as below.
IsProcess = var _mindaterange = CALCULATE( MIN('Calendar'[DateRange]), FILTERS('Calendar'[DateRange]) ) var _maxdaterange = CALCULATE( MAX('Calendar'[DateRange]), FILTERS('Calendar'[DateRange]) ) return IF( NOT OR(_maxdaterange<MAX('Table'[Start Date]),_mindaterange>MAX('Table'[End Date])), 1,0 )Finally you need to put the measure to the visual level filter. Here are the results.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Haya
Here is the example you provided.
Then I created the following measure to count tasks.
Tasks =
COUNTROWS(ALLSELECTED('Table'))
Here is the result.
There is only 'Ali' satisfy the condition which is between 3/1/2020 and 3/31/2020. So the result is 1. I wonder if there is any difference with the sample data.
Best Regards
Allan
- v-alq-msft6 years ago
Community Support
- Haya6 years ago
Helper II
Dear v-alq-msft
I'm counting the tasks in different way, based on its status. (may be this is why I'm getting wrong output)
To clarify more, I upload a real sample data in this link: Sample
When I select June, this is the output
When I right click on # task and click see records, here is the output
The first date is start date and the second is end date.
Task 84 is correct but Task 78 is not.
Thank you for help
- v-alq-msft6 years ago
Community Support
Hi, Haya
There is a many-to-many relationship betwwen 'id' and 'Assigned to'. So for 'Employee 24' it exsits both situations when the conditions are met and situations when the conditions are not met. The result will be 2.
You may try to add 'Id' to 'Rows' in 'Fields' ribbon. Here is the result.
Best Regards
Allan