Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a table containing different dates (dateARInitiateComplete, dateARScreenComplete, dateARCloseComplete). These values need to be sent to the filter and then returned in the calculated table as Complete. The code works fine so long as I'm only using one condition (First Example). When I add Switch (Example 2), I get the error message "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value". I can't figure out how to switch out one column name for another to be able to filter the specific column selected.
Solved! Go to Solution.
Hi @Kym01 ,
Dax function can include a calculated table in the measure, but Measure outputs a single value, your dax function outputs a table or a whole column of values, so that's why you get that error.
You can consider using CALCULATETABLE or you can consider using MAXX() similar aggregation function + Filter() function to combine the output of the value you want, you can try to explain what kind of result you want to output in the measure, share sample data and sample output in table format? Or sample pbix after removing sensitive data. We can better understand what the problem is and help you.
This is the related document, you can view this content:
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kym01 ,
Dax function can include a calculated table in the measure, but Measure outputs a single value, your dax function outputs a table or a whole column of values, so that's why you get that error.
You can consider using CALCULATETABLE or you can consider using MAXX() similar aggregation function + Filter() function to combine the output of the value you want, you can try to explain what kind of result you want to output in the measure, share sample data and sample output in table format? Or sample pbix after removing sensitive data. We can better understand what the problem is and help you.
This is the related document, you can view this content:
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Solved: The expression refers to multiple columns. Multipl... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.