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

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

Hi, i have this problem on my dax measure, can you help me pls? 

Pruebas Horas =
VAR TablaAux =
CALCULATETABLE(
    SUMMARIZE(
        Calendario,
        Calendario[Mes - Año],
        "Horas Hombre", [Horas Hombre]),
        FILTER(Calendario, OR(Calendario[Mes - Año] = "julio 2024", Calendario[Mes - Año] = "agosto 2024") = [PRUEBAHORAS]))

RETURN
TablaAux


Thx!
2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

 

Your DAX formula is reporting an error because you are trying to assign a table (containing multiple columns) to a variable that expects a scalar value.

If lbendlin's reply helped you solve your problem, please consider accepting his reply as a solution. If not, could you please provide some dummy data and tell us what you want to get out of this DAX? What are the [Horas Hombre] and [PRUEBAHORAS] measures in this DAX? This will help us to clearly understand your needs and assist you.

 

Refer to these link:

How to Get Your Question Answered Quickly - Microsoft Fabric Community

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You are trying to compare a filter to a measure ([PRUEBAHORAS]) ?

 

Use SUMMARIZECOLUMNS and TREATAS.

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.