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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NourJ
Helper III
Helper III

slicer is not working with Calculate?

Dear Community,

I am wondering if anyone can help.

I created a measure that calculates the (previous month and by quarter )using DAX formula calculate with a filter.

Even though the formula works there is no way to apply additional filters to the measure with a slicer.

Below is the function I am using if needed, is there any workaround to this?

 

previous month = CALCULATE([IDP Arrived IND 2018+2019],FILTER(ALL(Append1),Append1[Month no.]=MAX(Append1[Month no.])-1))
......
IDP by quarter = var q = MAX(Append1[quarter no 1])
return
CALCULATE([IDP Arrived IND 2018+2019] ,FILTER(ALL(Append1),Append1[quarter no 1]=q))
 
thank you in advance
4 REPLIES 4
Anonymous
Not applicable

What is the formula of the measure [IDP Arrived IND 2018+2019]? And on which column the slicer is working? Also an ALL will ignore filters if applied on a slicer...

@Anonymous  its a simple sum 

IDP Arrived IND 2018+2019 = SUM(Append1[IDP (Syrian) Arrived IND]) + SUM(Append1[IDP (Syrian) Arrived IND2018]) + SUM(Append1[IDP (Syrian) Arrived from outside - IND])
 
so if all is the problem what can i do i tryed all selected it didn't work? plaese advice!
Anonymous
Not applicable

The ALL function will select all values on a column, ignoring filters. If you apply a slicer o that column, will be therefore ignored because you used the All. But having a better understanding of the data model, the dataset and the expected result would help. With such poor information all can I say is that here is a suspect of the ALL...

it works only when i filter by month but when filtering by location it doesn't, here is a screen shot of the relations if this will help.

 

any relationship.PNGway thank you for your response

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors