Forum Discussion
Pb to calculate Leadtime
- 8 years ago
Hi lore256,
Fo you scenario, you could create a calculated table with SUMMARIZE.
Please have a reference of the formula below and modify it for your requirement.
Table 2 = SUMMARIZE ( 'Table', 'Table'[Parcel Number], "Take in charge_", CALCULATE ( MIN ( 'Table'[Movement data and time] ), FILTER ( 'Table', 'Table'[Movement label] = "Take in charge" ) ), "Drop Off_", CALCULATE ( MAX ( 'Table'[Movement data and time] ), FILTER ( 'Table', 'Table'[Movement label] = "Drop Off" ) ) )Column = 'Table 2'[Take in charge]-'Table 2'[Drop Off]
Here is the output.
Best Regards,
Cherry
Hi lore256,
It seems that you want ot calculate the working days.
You could have a reference of the links below.
1. Using Power Query: https://www.powerquery.training/portfolio/networkdays/
2. Using DAX: https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662
Best Regards,
Cherry
Hi v-piga-msft (Cherry),
Thank you but I already read these solutions but that not corresponds to my request... :smileyfrustrated: . I don't want to calculate the total of working days. I would like the leadtime with only the working days (in particulary hour) for each lines.
Thank you
Best Regards,
Lore