Forum Discussion
Calculate positive and Negative WorkingDays
Thanks for the reply amitchandak .
I did tried as below by using your suggestions.
I guess i am half way through, but not completely.
First i did created a weekname column by excluding SAT and SUN
Can you share sample data in excel along with the expected results? If possible please share a sample pbix file after removing sensitive information.Thanks.
My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
- Mohan2212136 years agoNew Member
amitchandak there is no sample data or sensitive data for this.
i directly created this calender table and i am trying to create a column which can give me the result as i showed in my question.
- amitchandak6 years ago
Super User
I create two column. You can merge those.
https://www.dropbox.com/s/bs6m71k27gc76vc/datediff.pbix?dl=0
Also need of a new column for start of month can aslo we removed.
Date diff start of Month = if('Date'[Week day] <6,COUNTx(FILTER('Date','Date'[Week day] <6 && 'Date'[Start of Month]= EARLIER('Date'[Start of Month]) && 'Date'[Date]<= EARLIER('Date'[Date])),'Date'[Date]),0) Date diff End of Month = -1*if('Date'[Week day] <6,COUNTx(FILTER('Date','Date'[Week day] <6 && 'Date'[Start of Month]= EARLIER('Date'[Start of Month]) && 'Date'[Date]>= EARLIER('Date'[Date])),'Date'[Date]),0)Hope this will help.
- v-lionel-msft6 years ago
Community Support
Hi Mohan221213 ,
I have researched amitchandak 's answer, which is very creative, but there seems to be a problem, I will continue to research the problem.
Best Regards,
Lionel Chen