Forum Discussion

pbi1908's avatar
pbi1908
Helper III
3 years ago

Break a date column

Hi everyone i have a table  like below which is the weekly Payroll for each department. In the week ending is always Sunday to indicate the the corresponding week. 

 

I want to transform this table so to have one column for the values (Hourly STD, Hourly OT, Fringe) and to break the week ending into weekdays. So my table i want to looks like the 2nd screenshot, so not only break the week ending to weekdays but triplicate wach weekday cause of the types. So for example if i have a week ending 2 times i want to transform it to 2*5(weekdays)*3(types) =30 lines 

and i want to do this in DAX do you have any idea how can i do it ?

 

screenshot 1

 

 

 

screenshot 2

 

 

 

 

 

 

 

I attached also the excel file just in case.

 

https://docs.google.com/spreadsheets/d/1tUE6cpEiIlL1hBrZa8zPrEhSjFSusI47/edit?usp=share_link&ouid=113645829496615202755&rtpof=true&sd=true