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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.