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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

ALL function not working with report filter

Hi

 

I have a measure: 

Measure = 
CALCULATE(
    DISTINCTCOUNT('Employee - date'[Empl_nr]);
        ALL('Calendar'[Date]);
        FILTER('Employee - date'; 'Employee - date'[DateID] = "Leave date");
            'Employee - date'[Date] < TODAY() && 'Employee - date'[Date] <> BLANK() )

I want this measure to ignore a report filter in the Calendar table that is filtered to a specified period (FY 1, 2 & 3). 

Anyway the measure output is still affected by the report filter. 

 

(The two tables "Calendar" and "Employee - date" have a relationship. )

 

Can someone help me? Thnx! Smiley Happy

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The solution was to remove the filter function in the measure. 

 

CALCULATE(
    DISTINCTCOUNT('Employee - date'[Empl_nr]);
        ALL('Calendar'[Date]);
        'Employee - date'[DateID] = "Leave date";
        'Employee - date'[Date] < TODAY() && 'Employee - date'[Date] <> BLANK() )

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I am havinga similiar issue, however I do not have filter in my measrue.  I have the following measure:

measure = CALCULATE(SUM(factPPM[Currency Amount  (Fin Plan)]),
    all('Forecast Period'),
    ALL(dimLists[Item Status]),
    factPPM[Financial View (Fin Plan)]="Budget")

 

I want to have the report filter set to exclude [Item Status] is not canceled.  However when I do this, my measure is also affected.  Can anyone provide some suggestions?

 

Thank you in advance for your help.

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may add CROSSFILTER Function outside and set cross-filter direction to None.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

The solution was to remove the filter function in the measure. 

 

CALCULATE(
    DISTINCTCOUNT('Employee - date'[Empl_nr]);
        ALL('Calendar'[Date]);
        'Employee - date'[DateID] = "Leave date";
        'Employee - date'[Date] < TODAY() && 'Employee - date'[Date] <> BLANK() )

This is works. But why? what's the reason behind it?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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