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.
Hi everyone,
New to the community and hoping to get some assistance on a problem I am facing.
I have a Table which consists of outbound information, various columns, but the below headings are most important for the problem I have:
Delivery Number
Material Number
Document Date
Document Time
Movement Date
It looks like this:
As you can see, the delivery number expands per part number. I created a Merge between Material database and Outbound report to bring in the number of pieces within a carton. This was fine.
However, my problem is trying to isolate the number of cartons per DAY. Reason being is we have different measures of time for various amounts of cargo:
- If less than xxxx amount of cartons ordered prior 11:00 AM then days to ship = 0.
- If more than xxxx and less than yyyy cartons ordered prior to 11:00 AM then days to ship = 1
And so on and so forth.
However, if I attempt to sum the amount of cartons received prior to 11:00am it gives me for ALL days, which of course stops my IF statements from working (please excuse all the visuals, my various attempts at getting this right (the condensed table gives me an accurate read on SLA by day:
I created a reference table using the outbound information, extracting the order date (Doc Date) and Cartons. I then grouped cartons by date and created a relationship using Document Date from them but I do not get the desired result.
Apologies if this post is all over the place, I have been struggling for almost 11 hours with this now.
End Result - Dynamic Target Days based on Order TIME and Quantity of Cartons.
Solved! Go to Solution.
You may create a measure like below to calculate the amount of CTN.
Sum per day = CALCULATE(SUM(Delivery[CTN Qty]),ALLEXCEPT(Delivery,Delivery[Document Date]))
When using ALLEXCEPT function, it will keep the filters on Date and remove all filters on other fields. Then you can use this measure in other measures to get what you need. Please take care about the filtered context for evaluating the measures.
Documentations in case you need:
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
You may create a measure like below to calculate the amount of CTN.
Sum per day = CALCULATE(SUM(Delivery[CTN Qty]),ALLEXCEPT(Delivery,Delivery[Document Date]))
When using ALLEXCEPT function, it will keep the filters on Date and remove all filters on other fields. Then you can use this measure in other measures to get what you need. Please take care about the filtered context for evaluating the measures.
Documentations in case you need:
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |