Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
tarmogolf
Frequent Visitor

Pay Period Beginning Column

Hi there, looking for a bit of help adding in a "Pay Period Beginning" column to my Date table. The company's pay periods are 1-15th, and 16th-end of month. So if the date in the date table is 6/10/2022, "Pay Period Beginning" would be 6/1/2022, and if it's the 24th of the month the "Pay Period Beginning" would be 6/16/2022. I'm sure this is simple and I'm overthinking it, any help is appreciated.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@tarmogolf 

Give this a try.

Pay Period Beginnging = 
VAR _Day = DAY ( [Date] )
RETURN DATE ( YEAR ( [Date] ), MONTH ( [Date] ), IF ( _Day <= 15, 1, 16 ) )

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@tarmogolf 

Give this a try.

Pay Period Beginnging = 
VAR _Day = DAY ( [Date] )
RETURN DATE ( YEAR ( [Date] ), MONTH ( [Date] ), IF ( _Day <= 15, 1, 16 ) )

Beautiful, worked perfectly. Thank you so much.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.