Forum Discussion
Working days and Days gone
- 4 years ago
Hi ThuJa23
You could simplify your calculation by using Today_ = FORMAT(TODAY(),"dd.mm.yyyy") to get today's date in format "dd.mm.yyyy".
For daygones calculation, you could try below code. You will get yesterday's date by using today()-1.
daygones = VAR Yesterday_ = FORMAT ( TODAY () - 1, "dd.mm.yyyy" ) RETURN CALCULATE ( MAX ( FAC_Workdays[ATLDF_] ), 'Date'[DATE DE] = Yesterday_ )Hope this helps.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
ThuJa23 , create two measures like these and calculate percentage
Working days of month = countrows(filter(addcolumns(calendar(eomonoth(today(),-1)+1,eomonoth(today(),0)), "WorkDay", weekday([Date],2)),[WorkDay]>6))
Working days passed = countrows(filter(addcolumns(calendar(eomonoth(today(),-1)+1,today() ), "WorkDay", weekday([Date],2)),[WorkDay]>6))
- ThuJa234 years ago
Advocate II
Hi amitchandak ,
Thanks for your replies.
It actually didn't work to me. As the result from below, with filter in September, Working day is just 5. It should be 22
Working day = countrows(filter(addcolumns(calendar(EOMONTH(today(),-1)+1,EOMONTH(today(),0)), "WorkDay", weekday([Date],2)),[WorkDay]>6))Or am I wrong in anything?
Thanks
Thu