Networkdays

AndyMax

Board Regular
Joined
Aug 4, 2014
Messages
79
Hi

My formula below works fine but I want but I want to change +1 that is a static value (marked with red) to a dynamic value that can be found in column named leadtime.

=CALCULATE(LASTDATE(dbdata[Dc shipped dag]);FILTER(dbdata;dbdata[CalculatedColumn5]=EARLIER(dbdata[CalculatedColumn5])+1&& dbdata[CalculatedColumn6]=1))

Anyone that have an idea how to do that?

Br Andy
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
what's the criteria to locate that dynamic value?
 
Upvote 0
Hi Alan

I'm not sure if I understand you right but the value is already given within the data :)

CalculatedColumn7=CALCULATE(LASTDATE(dbdata[Dc shipped dag]);FILTER(dbdata;dbdata[CalculatedColumn5]=EARLIER(dbdata[CalculatedColumn5])+1&& dbdata[CalculatedColumn6]=1))

I want to replace +1 with the data in column Leadtime

Dc shipped dag
CalculatedColumn6
CalculatedColumn5
CalculatedColumn7
Leadtime
2016-07-19 00:00
1
8
2016-07-20 00:00
2
2016-07-27 00:00
1
14
2016-07-28 00:00
1
2016-07-28 00:00
1
15
2016-07-29 00:00
4
2016-07-28 00:00
1
15
2016-07-29 00:00
1

<tbody>
</tbody>

<colgroup><col><col span="3"><col></colgroup><tbody>
</tbody>

Br Andy
 
Upvote 0
sorry, just realised that your question is under Power BI that I known nothing about.
have to pass the baton on.
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,483
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top