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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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
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.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)