cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cromero Regular Visitor
Regular Visitor

Total Count in a measur

Hi all ,

I have a dashboard with some filters in the page label. The question is I have a table with number of orders and I want to count all of the orders but without taking in account the page label filter.

 

I'm doing the typical COUNT ( ordaertable'[NOE] )) but the number is not correct. How can avoid the filter only for this measure?

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
themistoklis New Contributor
New Contributor

Re: Total Count in a measur

@cromero

 

Try using the ALLEXCEPT function:

 

CALCULATE ( COUNT ( 'ordaertable'[NOE] ),ALLEXCEPT('ordaertable', 'ordaertable'[Cod.Cliente]))
9 REPLIES 9
themistoklis New Contributor
New Contributor

Re: Total Count in a measur

@cromero

 

Try the following:

 

Measure = CALCULATE ( COUNT('ordaertable'[NOE]),ALL('ordaertable' ) )
Super User
Super User

Re: Total Count in a measur

try this

CALCULATE ( COUNT ( 'ordaertable'[NOE] ), ALL ( 'ordertable'[NOE] ) )

CALCULATE changes filter contex of calculation to the one I highlighted , which ignores filters coming from visuals etc. 

cromero Regular Visitor
Regular Visitor

Re: Total Count in a measur

Hi @themistoklis and @Stachu ,

 

I test it both but the result are the same. The thing is , I have a page level filter and is showing the number related to tht filter. The same cont in other page the result is 92644 but when I apply he same count in the page that I have other filters the result is 8316.

themistoklis New Contributor
New Contributor

Re: Total Count in a measur

@cromero

 

Can you send a few screenshots of the report and the formula that you are using?

cromero Regular Visitor
Regular Visitor

Re: Total Count in a measur

This is the filter. Is a column of a same table of orders and only describe the kind of incidents.

 

Captura2.PNG

The query is the sames as you write :

 

CALCULATE ( COUNT ( 'ordaertable'[NOE] ), ALL ( 'ordertable'[NOE] ) )

 

themistoklis New Contributor
New Contributor

Re: Total Count in a measur

@cromero

 

Are you sure when you try the query with the table in the ALL statement and NOT the columnname, doesnt work:

 

CALCULATE ( COUNT ( 'ordaertable'[NOE] ), ALL ( 'ordertable' ) )

Not

 

CALCULATE ( COUNT ( 'ordaertable'[NOE] ), ALL ( 'ordertable'[NOE] ) )
cromero Regular Visitor
Regular Visitor

Re: Total Count in a measur

Hi @themistoklis,

 

Yes , without the columname is showing the full number but is repeating the same number for all the rows like this:

 

Captura3.PNG

Highlighted
themistoklis New Contributor
New Contributor

Re: Total Count in a measur

@cromero

 

Try using the ALLEXCEPT function:

 

CALCULATE ( COUNT ( 'ordaertable'[NOE] ),ALLEXCEPT('ordaertable', 'ordaertable'[Cod.Cliente]))
cromero Regular Visitor
Regular Visitor

Re: Total Count in a measur

You are the boss @themistoklis Thanks you so much :-)