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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Lookupvalue from Date table and Return Holidays

Hi,

I have date table and holidays table. I've created calculated holiday column in date table to return holiday name from holidays table but I get error "A table of mulitple values was supplied where a single value was expected"

The holidays table includes 3 years of holidays so how do I return correct holiday for the corresponding year?

Holiday = LOOKUPVALUE('Holidays 2021-2023'[Holiday ],'Holidays 2021-2023'[Date],'Calendar'[Date])

 

1 ACCEPTED SOLUTION

try this

Calculated Column=concatenatex(filter(holidays_table,holidays_table[date]=calendar[date]),holidays_table[holiday],",")

View solution in original post

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi,

In a calculated column in the date table, for instance, on 29th/Nov/2021, what holiday name do you want to show?

I can see that your holiday table has two different holiday names on 29th/Nov/2021, and also, some of the dates have two different holiday names on the same date.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

@Jihwan_Kim  those holidays are for different regions of the country i.e. where holiday name has "Anniversary" in the suffix. Do I need to separate these "anniversary" holidays into a separate table?

wdx223_Daniel
Super User
Super User

it seems there are duplicate dates in the table of holidays.

Anonymous
Not applicable

@wdx223_Danielyes there are because I have future holidays included in the table. How do I factor this into the measure to return holiday column based on the corresponding year date?

Screenshot 2021-10-13 150826.jpg

try this

Calculated Column=concatenatex(filter(holidays_table,holidays_table[date]=calendar[date]),holidays_table[holiday],",")

Anonymous
Not applicable

@wdx223_Daniel  perfect that worked, thank you. Much appreciated.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.