Forum Discussion
PowerBIsv
8 years agoFrequent Visitor
Create holiday chart - The expression refers to multiple columns...
Hello DAX-people!
I want to create a report that show who(how many) is on holiday in a "Clustred column chart".
The problem: I keep getting "The expression refers to multiple columns. Multiple co...
- Anonymous8 years ago
Hi PowerBIsv,
SUMMARIZE function will generate a table, you can't direct use this function in calculated column.
Returns a summary table for the requested totals over a set of groups.
For your requirement, I'd like to suggest you to create the expand table to stored the detail holiday range, then create relationship with calendar table and build visual on these columns.
Table formula:
Holiday Schedule = SUMMARIZE ( FILTER ( CROSSJOIN ( HolidayTable, 'Calendar' ), [Date] >= [Start Date] && [Date] <= [End Date] ), [Name], [Date], [Qualification] )Result:
Regards,
Xiaoxin Sheng