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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help getting a slicer/filter ignored in a measure

Hi

 

DPL Revenue = CALCULATE(sum('DPLImportPBI'[Forecast Revenue]),filter('DPLImportPBI',DPLImportPBI[IsLastestSubmissionValue]="Yes"))

 

Fo the above measure I want it to ignore a slicer on the page of the report. The Slicer is for a column called "Submission"

 

I have tried the following and it does not work

 

DPL Revenue = CALCULATE(sum('DPLImportPBI'[Forecast Revenue]),filter('DPLImportPBI',DPLImportPBI[IsLastestSubmissionValue]="Yes"),all('DPLImportPBI'[Submission]))

The above attempt does not work. The measure still changes with the slicer

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

My mistake. Smiley LOL

 

Based on my test, the formula below should work in your scenario. Smiley Happy

DPL Revenue =
CALCULATE (
    SUM ( 'DPLImportPBI'[Forecast Revenue] ),
    ALL ( 'DPLImportPBI'[Submission] ),
    DPLImportPBI[IsLastestSubmissionValue] = "Yes"
)

 

Regards

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Please note below also does not work.... the measure still changes it result when making slicer selections for the Submission column

 

DPL Revenue v2 = CALCULATE(sum('DPLImportPBI (2)'[Forecast Revenue]),filter('DPLImportPBI (2)','DPLImportPBI (2)'[IsLastestSubmissionValue]="Yes"),ALLEXCEPT('DPLImportPBI (2)','DPLImportPBI (2)'[Submission]))

Hi @Anonymous,

 

Could you try the formula below to see if it works in your scenario? Smiley Happy

DPL Revenue =
CALCULATE (
    SUM ( 'DPLImportPBI'[Forecast Revenue] ),
    FILTER (
        ALL ( 'DPLImportPBI'[Submission] ),
        DPLImportPBI[IsLastestSubmissionValue] = "Yes"
    )
)

 

Regards

Anonymous
Not applicable

That errors out from where I highlighte in red.... Note IsLastestSubmissionvalue is a column with yes/no data its not a measure.

 

DPL Revenue =
CALCULATE (
    SUM ( 'DPLImportPBI'[Forecast Revenue] ),
    FILTER (
        ALL ( 'DPLImportPBI'[Submission] ),
        DPLImportPBI[IsLastestSubmissionValue] = "Yes"

 

Hi @Anonymous,

 

My mistake. Smiley LOL

 

Based on my test, the formula below should work in your scenario. Smiley Happy

DPL Revenue =
CALCULATE (
    SUM ( 'DPLImportPBI'[Forecast Revenue] ),
    ALL ( 'DPLImportPBI'[Submission] ),
    DPLImportPBI[IsLastestSubmissionValue] = "Yes"
)

 

Regards

Anonymous
Not applicable

Looks like that is working.... thanks

I have a few other measure where I need to replicate this solution

 

thanks again

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors