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
Ignacioo
New Member

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

Ignacioo_0-1736343291223.png

Mi intención es poder filtrar los años de ingreso de 5 alumnos, donde yo selecciono 2021 con el fin de que se queden los alumnos que tengan ese mismo año osea 3 alumnos y los demás sean filtrados.
He batallado muchos días con este problema, agradecería mucho saber en qué fallo!

2 REPLIES 2
Anonymous
Not applicable

Hi @Ignacioo ,

 

If you could provide some simulated data and the expected output, that would be very helpful.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

SamWiseOwl
Super User
Super User

First to check is this a measure or New table.

If measure you can't return FILTER as that is a table, use New table.

 

If _Anio holds 3 students you can't use SelectedValue instead use Values() as that can return a column of values.

With values you need CalculateTable instead of Calculate and IN instead of =.

 

table =

var _anio = CalculateTable( Values('table'[anio_ingresso), Keepfilter(table))

Return

Filter(
all(Table)

,table[column] IN _Anio
)


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

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.