Forum Discussion
Calculating previous week numbers based on slicer values.
I am attempting to calculate previous week numbers for order count based on a slicer value input.
I am using a date table and have created a relationship between it and my data table based off a date value in the data table. The slicer selection is using the date table to pass the current selected value to my measure. What I have attempted is below.
The issue appears to be when using the ALL() with the other filters withing calculate. It returns a distinct count of all orders for the previous week without applying any filters.Is there a way to maintain previous filters within calculate while also not applying the Ship week filter from the slicer to the calcuation so I don't receive (BLANK) due to both the slicer value and the measure filter being applied simultaneous?
Any help would be greatly appreciated!
EDIT: I was able to solve this utilizing the following measure changes.
1 Reply
- Ashish_Mathur
Super User
Hi,
Share the link from where i can download your PBI file.