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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Removing effect of slicer and putting my own filters on table

Hello everyone!!

I want to create a mesure which would show me the count where rc month is less than of equal to chosen slicer month and rcm month is less than of equal to chosen slicer month by selecting only one month from slicer. Say i chose april only from slicer the count of rows from jan till april should be shown. I have a date dimension from where i am filtering my month and its effect is shown in fact table but only till the chosen month.  Here is the dax i am using

CALCULATE(COUNTROWS('fact table'),FILTER(ALL('fact table'),
'fact table'[rc month] >=1 && 'fact table'[rc month]<= MAX('Date dimension'[Date Key]) ,filter(all('fact table')
'fact table'[RCM month]>=1 && 'fact table'[RCM month] <= MAX('Date dimension'[Date Key]) &&
NOT('fact table'[RCM month]) = BLANK() )))

this dax is shwoing me correct aggregated value but i want to show the result for each row independently by removing the effect of slicer and putting my own filter to get data correctly for each row.
 
1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

First of all believe that your measure is over complicated since you are using two times the ALL syntax over the FACT table believe that you can adjust you measure to be:

 

CALCULATE (
    COUNTROWS ( 'fact table' ),
    FILTER (
        ALL ( 'fact table' ),
        'fact table'[rc month] >= 1
            && 'fact table'[rc month] <= MAX ( 'Date dimension'[Date Key] )
            && NOT ( 'fact table'[RCM month] ) = BLANK ()
    )
)

When you are refering to have your filter independent from your slicer what do you mean? How do you want to gilter the information?

 

Can you share a sample file and expected result?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

First of all believe that your measure is over complicated since you are using two times the ALL syntax over the FACT table believe that you can adjust you measure to be:

 

CALCULATE (
    COUNTROWS ( 'fact table' ),
    FILTER (
        ALL ( 'fact table' ),
        'fact table'[rc month] >= 1
            && 'fact table'[rc month] <= MAX ( 'Date dimension'[Date Key] )
            && NOT ( 'fact table'[RCM month] ) = BLANK ()
    )
)

When you are refering to have your filter independent from your slicer what do you mean? How do you want to gilter the information?

 

Can you share a sample file and expected result?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors