Forum Discussion

dkernen2's avatar
dkernen2
Icon for Helper II rankHelper II
1 year ago
Solved

Help with REMOVEFILTERS needed

I have a dataset that creates a matrix with counts that looks like this:

 

AuditorNoYesTotal
230333
46 6
5112
Total37441

 

This is the DAX that does NOT do what I want:  

Cases WRT Auditor = CALCULATE([Cases],REMOVEFILTERS(AUDITORS[Auditor ID]))


I want to create a measure that gives subtotals irrespective of auditor. I want it to look like this, but I am doing something wrong.  Can you please assist?   Link to sample file:  https://kauffman.box.com/s/2n6ccf18xkfzrmxopltujibbasxeqbrr

AuditornoYesTotal
237441
437441
537441
Total37441


dax

  • Hi,

    This measure works

    Cases WRT Auditor = CALCULATE([Cases],ALLSELECTED(FINANCIAL_STATEMENTS[Auditor ID]))

    Hope this helps.

     

7 Replies

  • Hi,

    This measure works

    Cases WRT Auditor = CALCULATE([Cases],ALLSELECTED(FINANCIAL_STATEMENTS[Auditor ID]))

    Hope this helps.

     

    • dkernen2's avatar
      dkernen2
      Icon for Helper II rankHelper II

      Thank you!  I see that I was mixing the lookup Auditor ID with the fact table Auditor ID.  I appreciate the help!!

  • Cannot reproduce.  Something else must be going on (for example in your [Cases] measure).

     

     

    • dkernen2's avatar
      dkernen2
      Icon for Helper II rankHelper II

      My Cases Is using COUNTROWS().  Could that be the problem?

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        Countrows of what? The Cases table?  How is it wired in the data model?