The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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])
Solved! Go to Solution.
try this
Calculated Column=concatenatex(filter(holidays_table,holidays_table[date]=calendar[date]),holidays_table[holiday],",")
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.
@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?
it seems there are duplicate dates in the table of holidays.
@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?
try this
Calculated Column=concatenatex(filter(holidays_table,holidays_table[date]=calendar[date]),holidays_table[holiday],",")
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |