Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
Solved! Go to Solution.
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] )
)
Or go to Format -->Edit interactions-->Select "None" like this:
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.
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] )
)
Or go to Format -->Edit interactions-->Select "None" like this:
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.
@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
@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])
)
)
User | Count |
---|---|
84 | |
79 | |
62 | |
62 | |
51 |
User | Count |
---|---|
109 | |
95 | |
86 | |
79 | |
61 |