cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BI_Nooby
Frequent Visitor

Filter a table visual using criteria

I have a table with a year column.

I'd like to only show rows that meet a criteria on that year column.

 

What I've tried:

 

Testing = FILTER(Table1, Table1[Year] = 2020))
 
This gives me: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
 
I'm probably approaching this in the wrong way, as measures are supposed to aggrgate to a singe value and I would like it to return a table/column. How do I filter my table and return it in a table visual?
1 REPLY 1
pratyashasamal
Solution Sage
Solution Sage

Hi @BI_Nooby ,
You can create a measure that aggregate the value for a specific condition and which you can use in visuals .
For example :-
Measure = SUMX(FILTER((Table1, Table1[Year] = 2020)),[Value])
Thanks,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors