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

View all the Fabric Data Days sessions on demand. View schedule

Reply
kala2
Helper III
Helper III

Slicer select from two Columns (Filter charts)

I have two Columns as displayed below:

kala2_0-1633502559013.png


And my slicer is: 

kala2_1-1633502593786.png


Is it possible to filter only the "Yes" values when select some of the selections?
Created a DAX but seems not to be working.

VAR Selection =
      SELECTEDVALUE ( Table[SBU Attribution] )
RETURN
     SWITCH (
        Selection = "BAS",  SUMMARIZE(FILTER(Table, Table[SBU Attribution Value]="Yes")

     )


2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @kala2 ,

 

Not really sure about what you need to achieve but you measure is incorrect try the following change:

VAR Selection =
      SELECTEDVALUE ( Table[SBU Attribution] )
RETURN
     SWITCH (
        Selection,  "BAS",  COUNTROWS(SUMMARIZE(FILTER(Table, Table[SBU Attribution Value]="Yes"))
     )

 

Now use this measure has a filter of your visualization and set it has has greater than 0 or different from blank.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Icey
Community Support
Community Support

Hi @kala2 ,

 

You can just add the [SBU Attribution Value] column into a filter field and set as "is Yes".

 

Reference: Add a filter to a report in Power BI - Power BI | Microsoft Docs

 

 

Best Regards,

Icey

 

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

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @kala2 ,

 

You can just add the [SBU Attribution Value] column into a filter field and set as "is Yes".

 

Reference: Add a filter to a report in Power BI - Power BI | Microsoft Docs

 

 

Best Regards,

Icey

 

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

Icey
Community Support
Community Support

Hi @kala2 ,

 

Can my reply above solve your problem?

 

 

Best Regards,

Icey

 

MFelix
Super User
Super User

Hi @kala2 ,

 

Not really sure about what you need to achieve but you measure is incorrect try the following change:

VAR Selection =
      SELECTEDVALUE ( Table[SBU Attribution] )
RETURN
     SWITCH (
        Selection,  "BAS",  COUNTROWS(SUMMARIZE(FILTER(Table, Table[SBU Attribution Value]="Yes"))
     )

 

Now use this measure has a filter of your visualization and set it has has greater than 0 or different from blank.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors