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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.