Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Filtered VALUES()

In my formula I am using a filter based "IN {valuesB}"

I want "valuesB" to filtered depending on values appeared in another column Something like: VAR valuesA = VALUES(Table[ColumnA]) VAR valuesB = IF(Table[ColumnB]=1;VALUES(Table[ColumnA]);"")

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I tried a different aproach to the problem, using another table and it worked.

 

The idea was to obtain the distinct values of a second table (B) based on the selected values in a slicer from table A. The tables could not be linked so I used the selected values in table A to filter table B in DAX using the IN {values} and the function VALUES().

 

I know it's a bit confusing, thank you.

 

 

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

I have a little confused about your scenario.

If it is convenient, could you share your data sample which could reproduce your scenario and your desired output so that we could understand your requirement better and get the solution.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I tried a different aproach to the problem, using another table and it worked.

 

The idea was to obtain the distinct values of a second table (B) based on the selected values in a slicer from table A. The tables could not be linked so I used the selected values in table A to filter table B in DAX using the IN {values} and the function VALUES().

 

I know it's a bit confusing, thank you.

 

 

Hi @Anonymous ,

Have you solved your problem?

If you have solved your problem, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.