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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Elie_HUCHET
Helper II
Helper II

formula issue - remove filter on page

Hello,

I am having an issue and I would like to create a formula to calculate an anomaly rate. It's quite simple, I need to calculate the number of anomalous rounds divided by the total number of rounds. However, I have a filter on my page (as you can see on the picture) that only takes these rounds into account so that we can analyze their cause.
Here is the formula I am proposing that is resulting in an error:

=DIVIDE(CALCULATE(COUNTROWS(UO),UO[16. Densité de remplissage]="Densité anormalement faible"),ALL(UO[Date service véhic.])

 

Elie_HUCHET_0-1677837019009.png

 

3 REPLIES 3
Padycosmos
Solution Sage
Solution Sage

You may try:

=DIVIDE(CALCULATE(COUNTROWS(UO),UO[16. Densité de remplissage]="Densité anormalement faible"), CALCULATE(COUNTROWS(UO),Removefilters())

Elie_HUCHET
Helper II
Helper II

Thank you for your help. The formula is not working. Indeed, the formula always takes into account the filter on the page. As we can see here, it shows that 100% of the files are anomalies, which is normal since the filter that applies intentionally focuses only on this type of file. However, I would like the formula to ignore this filter and calculate over the entire table.

 

Elie_HUCHET_0-1677841911764.png

 

Padycosmos
Solution Sage
Solution Sage

Please try the following:

=DIVIDE(CALCULATE(COUNTROWS(UO),UO[16. Densité de remplissage]="Densité anormalement faible"), CALCULATE(COUNTROWS(UO),ALL(UO[Date service véhic.]))

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors