Forum Discussion
Days Beetween deliverydates
I have a table with different order numbers, different materials and different delivery dates.
I would now like to have the number of days of the delivery date per material evaluated. In Excel I had the function Days.
In Power Bi this does not work with Datediff.
How i can solve it via a DAX Formula? A Measure oer a calculated Column?
8 Replies
- DhairyaSolution Supplier
Can you please share your sample data?
- Kishore_KVNSolution Sage
Hello RWWRRW you can use NETWORKDAYS DAX and create a measure and dont forget to mention ALLEXCEPT for the material column so that it will pick days for each material individually.
Your measure should look like this:
Duration = Calculate(Networkdays(Start_Date,End_Date),ALLEXCEPT(Table_Name, 'Table_Name'[Material_Column]))This will give you the duration for each material individually.
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
- danextianSuper User
Please provide more information/sample data. It will matter the days to compare are in separate tables, different rows, etc.
- RWWRRWRegular Visitor
Hi
i have a table with PO/Parts/deliverydate
29.06.2023 6238447 4715 29.06.2023 0 6240493 5050 16.06.2023 6238006 5050 24.06.2023 8 552230 5053 01.06.2023 552230 5053 15.06.2023 14 552230 5053 29.06.2023 14 6240497 78902 20.06.2023 6240576 78902 20.06.2023 0 6240915 78902 27.06.2023 7 - RWWRRWRegular Visitor
sorry i hope this table shows it. I want in Power Bi via Dax calculate the days beetween the deliverdates from each part
PO Part Date LfD days 551196 4711 07.06.2023 551197 4711 19.06.2023 12 82706078 4712 23.06.2023 82693981 4712 30.06.2023 7 5555125 4713 07.06.2023 5555126 4713 22.06.2023 15 6238279 4715 29.06.2023 6238447 4715 29.06.2023 0 6240493 5050 16.06.2023 6238006 5050 24.06.2023 8 552230 5053 01.06.2023 552230 5053 15.06.2023 14 552230 5053 29.06.2023 14 6240497 78902 20.06.2023 6240576 78902 20.06.2023 0 6240915 78902 27.06.2023 7