Forum Discussion
Payroll Calendar and Pay Period Numbers
- 5 years ago
Hi, PowerBIFreak
Please correct me if I wrongly understood your question.
I think, you can easily create the calendar table like below for the first four columns.
In order to create the last column in the below picture, please try the below.
Period Number =VAR currentdate = 'Calendar'[Date]RETURN"Period "& ROUND (DIVIDE (SUMX (FILTER ( 'Calendar', 'Calendar'[Date] <= currentdate ),IF ( 'Calendar'[Day of Week] = 1, 1 )),2),0)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi, PowerBIFreak
Please correct me if I wrongly understood your question.
I think, you can easily create the calendar table like below for the first four columns.
In order to create the last column in the below picture, please try the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Yes, Yes, Yes! This is perfect and it's exactly what I needed. Thank you very much for your help. I guess I need to get familiar with variable, am I right? I have not been able to sleep for a couple of weeks because of this issue. Thanks again!😊