Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Need a little more help. I made some progress creating a calculated column in the ADP_Labor table. I am using datediff to put each ADP_Labor[Timecard Pay Date] row into a Pay Period. There are 26 pay periods per year. I just need help figuring out how to put period 27 as period 1 (first one in a new year). Any ideas?
Hi @drinko ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.
Best Regards,
Eyelyn Qin
Hi @drinko ,
According to my understanding, you want to add the Date period in Pay table to ADP table, right?
You could use the following formula:
Column =
VAR _date = [Timecard Pay Date]
RETURN
CALCULATE (
MAX ( 'Pay_Period'[Pay Period] ),
FILTER (
'Pay_Period',
'Pay_Period'[Period start date] <= _date
&& 'Pay_Period'[Period end date] >= _date
)
)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@drinko , You have to join them in a measure
Thank you, but now I don't know how to calculate Pay Period into a Date table that spans multiple years. 2019 period 1 start date is 12/21/2018 and 2020 period 1 start date is 12/20/2019 and 2021 period 1 start date is 12/18/2020. Not sure which function to use.
I thought there would be an easier approach to his without having to create a dimension table with hundreds of rows for each date. I was hoping there was a DAX expression that could look at the ADP_Labor[Timecard Pay Date] and determine which Pay Period it is in without having to join to a Date table. I'll try anything at this point though.
@drinko ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Yes Sir. I can share some sample data. FIrst time user so not sure where to click to share CSV files?
@drinko , One is you can copy paste from excel to here/ Or Upload on onedrive or dropbox and share the link
https://drive.google.com/drive/folders/1QXrhe8NphrGMcXpxEXyXz_ETLDWelpyz?usp=sharing
Thank you for taking a look.
Need a little more help. I made some progress creating a calculated column in the ADP_Labor table. I am using datediff to put each ADP_Labor[Timecard Pay Date] row into a Pay Period. There are 26 pay periods per year. I just need help figuring out how to put period 27 as period 1 (first one in a new year). Any ideas?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
98 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |