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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.