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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors