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
djwbaker
Frequent Visitor

exclude 1 slicer from measure

Hi

i am trying to work out an average for a month number across many years so i can apply customer history patterns against sales targets

I have 5 slicers
Org, Plant, Month number, sold to, year
 I want the measure to use all slicers except the year

any advice please?
cheers Dan

cumualtive  =
CALCULATE(
SUM('Oracle Data'[SUM(ORDER_QTY*SELLING_P)]),
FILTER(
ALLselected('Dates'),
'Dates'[WORKDAY NUMBER] <= MAX('Dates'[WORKDAY NUMBER])
)
)




1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @djwbaker ,

 

You could use REMOVEFILTERS() to clear filters from the specified tables or columns:

 

Measure =
CALCULATE (
    SUM ( 'Oracle Data'[Sales] ),
    REMOVEFILTERS ( 'Oracle Data'[Year] )
)

 

2.15.8.1.gif

 

Or go to Format -->Edit interactions-->Select "None" like this:

2.15.8.2.gif

 

Please take a look at the pbix file here.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @djwbaker ,

 

You could use REMOVEFILTERS() to clear filters from the specified tables or columns:

 

Measure =
CALCULATE (
    SUM ( 'Oracle Data'[Sales] ),
    REMOVEFILTERS ( 'Oracle Data'[Year] )
)

 

2.15.8.1.gif

 

Or go to Format -->Edit interactions-->Select "None" like this:

2.15.8.2.gif

 

Please take a look at the pbix file here.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@djwbaker , Try like

 


cumualtive =
CALCULATE(
averageX(values('Oracle Data'[Month]),CALCULATE(SUM('Oracle Data'[SUM(ORDER_QTY*SELLING_P)]))),
FILTER(
ALLselected('Dates'),
'Dates'[WORKDAY NUMBER] <= MAX('Dates'[WORKDAY NUMBER])
)
)

hi 
thank you for the quick reply, but my year slicer from my date table is still infuencing the measure

cumualtive a =
CALCULATE(
averageX(values('Oracle Data'[month number]),CALCULATE(SUM('Oracle Data'[SUM(ORDER_QTY*SELLING_P)]))),
FILTER(
ALLselected('Dates'),
'Dates'[WORKDAY NUMBER] <= MAX('Dates'[WORKDAY NUMBER])
)
)

@djwbaker , Try

 

cumualtive =
CALCULATE(
averageX(values('Oracle Data'[Month]),CALCULATE(SUM('Oracle Data'[SUM(ORDER_QTY*SELLING_P)]))),
FILTER(
ALL('Dates'),
'Dates'[WORKDAY NUMBER] <= MAX('Dates'[WORKDAY NUMBER])
)
)

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.