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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
RobinQ
New Member

Counting all selection filters but one

Hello, I've created a dasboard with a few diagrams; orders by year, country and conversion time. The data is all stored in a single table. A measurement has been added so I can see the total count orders. When I select one or multiple bar charts, the whole page is filtered down to that data.

Now what I would like is to create a new measurement that can count the orders, but then without the selection filter for a specific diagram. 

 

Data

RobinQ_0-1711015782631.png

 

Dashboard without selection (283 orders total)

RobinQ_1-1711015799540.png

 

Dashboard with "Italy", "2021" and "2022" selected (35 orders total)

RobinQ_2-1711015953750.png

 

Dashboard with "Italy", "2021" , "2022", "31-60" and "61-90" selected (19 orders total)

RobinQ_3-1711016019549.png

 

Now in the last image, I would like to get the order count which has been filtered in the Country and Year diagrams, without the filter of Days diagram. Then I can calculate the ratio within the conversion time chart, so value "35" (selection filter of country + year charts) and "19" (selection filter of country + year + conversion time charts), which should then be 19/35*100 = 54%.

 

Does anyone have any suggestions on how to approach this? I know about the DAX function ALL(), which ignores the selection of the whole page, but I need to only ignore the selection of a particular chart..

 

The calculation for all the orders is: 

 

Order count = CALCULATE(DISTINCTCOUNT(Orders[Order]))

 

 

Thanks for taking the time to read this.

 

1 ACCEPTED SOLUTION
_AAndrade
Super User
Super User

Hi,

You can try to use REMOVEFILTERS function, like this:
CALCULATE(
DISTINCTCOUNT(Orders[Order]),
REMOVEFILTERS('Name of the column of periods')
)





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

2 REPLIES 2
_AAndrade
Super User
Super User

Hi,

You can try to use REMOVEFILTERS function, like this:
CALCULATE(
DISTINCTCOUNT(Orders[Order]),
REMOVEFILTERS('Name of the column of periods')
)





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Hi _AAndrade, this is exactly what I was looking for. Thank you very very much!

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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