Forum Discussion
Distinct dates from specific date until today
I want to calculate the number of unique dates from a given date until today. Does anyone know how I can achieve this?
7 Replies
- Pragati11Super User
Hi Anonymous ,
You can create a Calendar table in Power BI using your START DATE and END DATE. Something like below:
CALENDAR(DATE(2021, 1, 1), DATE(2021, 6, 1))
You can check more details here: https://docs.microsoft.com/en-us/dax/calendar-function-dax
Thanks,
Pragati
- AnonymousNot applicable
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.
- Pragati11Super User
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
- v-kkf-msftCommunity Support
Hi Anonymous ,
Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.
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,
Winniz