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
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
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.