Forum Discussion
Distinct dates from specific date until today
Hi Pragati11, I already have a calendar/date table. I want to see how many days an employee has worked, by checking the distinct dates that occur in the source file until today.
Hi Anonymous ,
Not sure if your question was clear in your query.
Please add more details on it like sample data input file and expeted output.
Thanks,
Pragati
- Anonymous5 years agoNot applicable
Let's say this is the data.
Name Date X 26-6-2021 Y 27-6-2021 Z 29-6-2021 X 20-7-2021 Y 23-7-2021 Z 24-7-2021 I want to count the the number of unique dates for X, Y or Z from the first available date until today.
- Pragati115 years ago
Super User
Hi Anonymous ,
Counting unique dates against a name is easy as shown below:
As you haven't attached the expected output along with the input, I will ask again what do you mean by - from the first available date until today ?
Thanks,
Pragati
- v-kkf-msft5 years ago
Community Support
Hi Anonymous ,
Try the following formula:
Measure = COUNTROWS( DATESBETWEEN( 'calendar'[Date], MIN('Table'[Date]), TODAY() ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.