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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Measure ignores some report level filters

I have two measures. One factors in ALL report level filters and the other does not. Why is this?

 

Works with all report level filters including the slicer on the "Created" date field:

Total Searches = COUNT('Usage Statistics'[ID])

Works with some report filters, but ignores the slicer on the "Created" date field

2017-06 = CALCULATE(COUNTROWS('Usage Statistics'), 'Usage Statistics'[Created] >= date(2017,06,01), 'Usage Statistics'[Created] < date(2017,7,01))

 

Why does the first one factor in all report filters but the second one does not? How can i get the second one to factor in the slicer on the "Created" date. Even though each measure shows monthy totals, if you change the slicer you would expect these to move to zero.

 

Adding ALLSELECTED to the measure does not seem to work.

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

If I understand you correctly, the formula below should work in your scenario. Smiley Happy

2017-06 =
CALCULATE (
    COUNTROWS ( 'Usage Statistics' ),
    FILTER (
        'Usage Statistics',
        'Usage Statistics'[Created] >= DATE ( 2017, 06, 01 )
            && 'Usage Statistics'[Created] < DATE ( 2017, 7, 01 )
    )
)

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

If I understand you correctly, the formula below should work in your scenario. Smiley Happy

2017-06 =
CALCULATE (
    COUNTROWS ( 'Usage Statistics' ),
    FILTER (
        'Usage Statistics',
        'Usage Statistics'[Created] >= DATE ( 2017, 06, 01 )
            && 'Usage Statistics'[Created] < DATE ( 2017, 7, 01 )
    )
)

 

Regards

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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