Forum Discussion
Anonymous
7 years agoNot applicable
Calculation between Start and End Date
Hi I have one table named "AbsenceDetailsFact" with columns named date_start, date_end, absence_days. following snap is the data from the table (sample data for one employee). I want to map fact ...
- Anonymous7 years ago
Hi Anonymous ,
Yes, it is possible. I modify my formula to add two variable to get current start,end date for calculation.
Workday = VAR currStart = MIN ( Table[Start] ) VAR currEnd = MAX ( Table[End] ) RETURN COUNTROWS ( FILTER ( CALENDAR ( currStart, currEnd ), WEEKDAY ( [Date], 2 ) < 6 ) )Regards,
Xiapxin Sheng
Greg_Deckler
7 years agoCommunity Champion
Take a look at these two Quick Measures as I think you want something like them.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365