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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-xinruzhu-msft
Community Support
Community Support

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
v-xinruzhu-msft
Community Support
Community Support

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.