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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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