Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have two tables: the first contains the columns Market, Max ETA Date, and Predicted Delivery Date; the second contains Capacity and Market. I need to calculate the difference between Max ETA Date and Predicted Delivery Date for each market. If the difference exceeds the capacity, the delivery should be scheduled for the next day
Solved! Go to Solution.
Hi @tkavitha911 please try this calculated column
Hi @tkavitha911
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @tkavitha911
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @tkavitha911
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @tkavitha911 please try this calculated column
Hi @tkavitha911
Can you try to create a new column with following measure
Adjusted Delivery Date =
VAR predictedDeliveryDate = 'Table 1'[Predicted Delivery Date]
VAR maxEtaDate = 'Table 1'[Max ETA Date]
VAR marketCapacity = RELATED('Table 2'[Capacity])
VAR differenceInDays = DATEDIFF(predictedDeliveryDate, maxEtaDate, DAY)
RETURN
IF(
differenceInDays > marketCapacity,
predictedDeliveryDate + 1,
predictedDeliveryDate
)
If it is not what you are trying to achieve, can you give us more details like an excel sample of what you are trying to achieve ?
Not working pls fix this dax im getting The following syntax error occurred during parsing: Invalid token, Line 4, Offset 2, .
This is the daily data at the port, but since the dates are not continuous, I created a separate dates table. I need help writing a DAX measure to calculate the difference between the Max ETA Date and the Predicted Delivery Date for each market. If the difference exceeds the capacity, the delivery should be scheduled for the next day.
The expression will be: (Max ETA Date - Predicted Delivery Date). If the difference exceeds the available capacity, the remaining quantity should be carried over to the next day, and this cycle should continue until all deliveries are scheduled.
Market | Max of eta | Predicted_Delivery_Date | Max of eta | Capacity |
Japan | 01-02-2024' | 04-01-1900 | 12-10-2024 | 2 |
Japan | 01-02-2024' | 04-01-1900 | 10-03-2025 | 2 |
Philippines | 01-02-2024' | 04-01-1900 | 10-04-2025 | 9 |
Vietnam | 01-02-2024' | 04-01-1900 | 04-10-2024 | 2 |
Taiwan | 01-02-2024' | 04-01-1900 | 19-04-2025 | 6 |
Thailand | 01-02-2024' | 04-01-1900 | 01-03-2025 | 7 |
Australia | 01-02-2024' | 04-01-1900 | 08-02-2025 | 6 |
China | 01-02-2024' | 04-01-1900 | 30-03-2025 | 8 |
Shenzhen | 01-02-2024' | 04-01-1900 | 23-03-2025 | 4 |
Korea | 01-02-2024' | 04-01-1900 | 29-11-2024 | 10 |
Vietnam | 01-02-2024' | 04-01-1900 | 21-03-2025 | 2 |
China | 01-02-2024' | 04-01-1900 | 21-03-2025 | 8 |
Japan | 02-02-2024 | 04-01-1900 | 21-03-2025 | 2 |
Japan | 03-02-2024 | 04-01-1900 | 21-03-2025 | 2 |
Philippines | 04-02-2024 | 04-01-1900 | 21-03-2025 | 9 |
Vietnam | 05-02-2024 | 04-01-1900 | 21-03-2025 | 2 |
Taiwan | 02-02-2024 | 04-01-1900 | 04-04-2025 | 6 |
Thailand | 03-02-2024 | 04-01-1900 | 04-04-2025 | 7 |
Australia | 04-02-2024 | 04-01-1900 | 04-04-2025 | 6 |
China | 05-02-2024 | 04-01-1900 | 30-03-2025 | 8 |
Shenzhen | 06-02-2024 | 04-01-1900 | 04-04-2025 | 4 |
Korea | 07-02-2024 | 04-01-1900 | 03-05-2025 | 10 |
Vietnam | 08-02-2024 | 04-01-1900 | 21-08-2024 | 2 |
China | 09-02-2024 | 04-01-1900 | 21-08-2024 | 8 |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |