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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
akhilduvvuru
Advocate II
Advocate II

Count rows measures excluding few slicers selection

Hi Team,

I have a requirement where i have a view with all dimentions and transactions together.

Have 6 slicers in a page Slicer1, Slicer2, Slicer3.... Slicer6

Now I want 2 measures to be created

Measure1 = Count rows based on only slicer1 or slicer 2 selection and ignore if I select anyting in slicer 3, 4, 5 and 6.

Measure2 = Count rows based on only slicer 3, 4, 5 and/or 6 and ignore if I select anyting in slicer 1 and slicer 2

I want to show both measures side by side in a table visual.

All this data is in single view. I tried using ALL, ALLSELECTED, ALLEXCEPT. Nothing is working. Can someone please help me with the same?

 

Thanks!

6 REPLIES 6
Ahmedx
Super User
Super User

if all your 6 slicers and sales tables are the same table, then you won't get anything.
you need to create separate dimensions for each slicer , and only then can you use REMOVEFILTERS, ALL

Yes @Ahmedx. You are 100% right.

 

But the problem is, if I seperate the dimensions (1 table for each dim slicer), slicers are not connected to each other.

I want slicers also to be interacted so that if I select a value in slicer 3, only the corresponding values should show in slicer 4.

akhilduvvuru
Advocate II
Advocate II

@Ahmedx @Greg_Deckler @lbendlin @DOLEARY85  - Any help here is much appriciated. Thanks!

 

use REMOVEFILTERS

@lbendlin Thanks for your response. Like @Ahmedx mentioned, it is not working even if I use REMOVEFILTERS as everything is in same table/view.

You mentioned dimensions so I (wrongly) assumed you had a data model.  Please normalize your data as needed.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.