Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

Reply
Etienne_1995
Frequent Visitor

surpass holidays in calculated column

Hi

 

I would like to calculate a column, where the date gets checked, if it is a holiday or not. When it is a holiday-day it should additionaly, to the already existing operation, add 1 extra day. But the holidays are in a seperate table.

 

But somehow I don't know how to combine information out of the tables in one calculated column.

 

the current calculation looks like this:

calculated Date = 'List'[EBP_Liefertermin] - 'List'[Vorlaufszeit in Tagen]
 
 
Etienne_1995_0-1668806470293.png

 

when there is a 1 in the column "holiday", it should get used in the calculated column to add 1 day to the calculation.

Etienne_1995_1-1668806533676.png

 

sadly I cannot share the file, since I'm not allowed to share it.

 

Any help would be highly appreciated.

 

Have a nice weekend

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Etienne_1995 

please try

calculated Date =
VAR CalcDate = 'List'[EBP_Liefertermin] - 'List'[Vorlaufszeit in Tagen]
RETURN
IF ( RELATED ( dynamic_calendar[holiday] ) = 1, CalcDate + 1, CalcDate )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Etienne_1995 

please try

calculated Date =
VAR CalcDate = 'List'[EBP_Liefertermin] - 'List'[Vorlaufszeit in Tagen]
RETURN
IF ( RELATED ( dynamic_calendar[holiday] ) = 1, CalcDate + 1, CalcDate )

Etienne_1995
Frequent Visitor

I would like to have a calculated column, which calculates 
'List'[EBP_Liefertermin] - 'List'[Vorlaufszeit in Tagen]

when "holiday" is = 0

 

but when "holiday" is = 1 I would like to do the same calculation, just with the addition to add an additional day for each 1 in the "holiday" column.

 

For example when there are 5 dates and every date has a 1 in the column "holiday", the calculation should ad 5 days extra to the normal calculation.

 

I hope this helps you to better understand my problem.

FreemanZ
Super User
Super User

how would you expect your result look like?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.