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.
Hello all, i hope you can help me with the following question:
i have two tables, trying to create a measure or column:
my question is e.g. if i place the order on 15th of march [order-date] and the [lead time] e.g. 12 working-days, on which date should i receive my product?
I hope my question is clear, thanks a lot for your help in advance, please find sample file with link
kind regards, thanks in advance
Franz
Solved! Go to Solution.
Hi FranzMei,
You coud create a climn like below in calendar
Column = VAR temp = CALCULATE ( SUM ( calenader[working day] ), FILTER ( ALL ( calenader ), calenader[date] <= EARLIER ( calenader[date] ) ) ) RETURN IF ( calenader[working day] = 0, 0, temp )
Then create measure like below
Measure 5 = LOOKUPVALUE ( calenader[date], calenader[Column], MIN ( 'Table'[lead-time] ) - 1 + LOOKUPVALUE ( calenader[Column], calenader[date], MIN ( 'Table'[order date] ) ) )
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi FranzMei,
You coud create a climn like below in calendar
Column = VAR temp = CALCULATE ( SUM ( calenader[working day] ), FILTER ( ALL ( calenader ), calenader[date] <= EARLIER ( calenader[date] ) ) ) RETURN IF ( calenader[working day] = 0, 0, temp )
Then create measure like below
Measure 5 = LOOKUPVALUE ( calenader[date], calenader[Column], MIN ( 'Table'[lead-time] ) - 1 + LOOKUPVALUE ( calenader[Column], calenader[date], MIN ( 'Table'[order date] ) ) )
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much, exactly what i need, works perfect
kind regards
franz
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 |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |