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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
anwargabr
Helper I
Helper I

Create a Slicer

Gents,

 

I've a colum named company, includes A, B, C, D, E, and F companies.

 

I want to creat a slicer filter "Selection Table" with two selection "Consolidation and Consolidation withot F"

1- Consolidation : Group all companies in all calculations
2- Consolidation withot F, Group all companies except for F in all calculations

 

thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @anwargabr 

You can refer to the following sample.

Sample data

vxinruzhumsft_0-1690350769224.png

 

Slicer data 

vxinruzhumsft_1-1690350779955.png

 

Then create a measure and put it to the table visual

Measure = IF(OR(ISFILTERED('Table (2)'[Slicer])=FALSE(),ISFILTERED('Table (2)'[Slicer])&&SELECTEDVALUE('Table (2)'[Slicer])="Consolidation"),CALCULATE(SUM('Table'[Column2])),CALCULATE(SUM('Table'[Column2]),FILTER('Table',[Column1]<>"F")))

 Output

vxinruzhumsft_2-1690350862389.png

 

vxinruzhumsft_3-1690350874910.png

 

Best Regards!

Yolo Zhu

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

2 REPLIES 2
Anonymous
Not applicable

Hi @anwargabr 

You can refer to the following sample.

Sample data

vxinruzhumsft_0-1690350769224.png

 

Slicer data 

vxinruzhumsft_1-1690350779955.png

 

Then create a measure and put it to the table visual

Measure = IF(OR(ISFILTERED('Table (2)'[Slicer])=FALSE(),ISFILTERED('Table (2)'[Slicer])&&SELECTEDVALUE('Table (2)'[Slicer])="Consolidation"),CALCULATE(SUM('Table'[Column2])),CALCULATE(SUM('Table'[Column2]),FILTER('Table',[Column1]<>"F")))

 Output

vxinruzhumsft_2-1690350862389.png

 

vxinruzhumsft_3-1690350874910.png

 

Best Regards!

Yolo Zhu

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

olgad
Super User
Super User

Hi, create a calculated column to classify your companies If(Company="F", "Conso without F", "Conso") 

You can use this column in all your further calculations if you need and as a slicer.

 

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

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