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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
SriBhaskar
Regular Visitor

Filter each column seperately based on slicer value in Power BI DAX

Hi All,

Below is my data. I need to filter the values based on the slicer selection 

exp20172021
044
000
-9999966
-9999970
28-99999
499
75-99999
700
000
 11
-9999900
-99999-999991
000
8-99999-99999
811
9-99999-99999

SriBhaskar_0-1707283812725.png

When I select any value in the slicer I need only those values in the columns I dont need any other values and slicer needs to work independent filtering of columns. For example If I select '-99999' I need below output.

Output  
exp20172021
-99999-99999-99999
-99999-99999-99999
-99999-99999-99999
-99999 -99999

When I select 0 in the slicer then the output I need like below.

exp20172021
000
000
000
000
 00
  0

Can anybody let me know how I can achive this by using DAX. If you have any idea to achieve please help on this.
Thank for your time.

3 REPLIES 3
Anonymous
Not applicable

Hi @SriBhaskar 

 

The result you want would destroy the relationship between the rows of the original table, so it is not possible. 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Nitish2024
New Member

please use SWITCH in DAX

Can you please explain in detail or give example when I tried it gives result like below. I need the above output.

exp20172021
-9999966
-9999970
-9999900
-99999-999991
28-99999
75-99999
8-99999-99999
9-99999-99999

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.