Forum Discussion
Measure Ignoring sate slicer
Hi, Guys
I have some problem with ignoring date slicer filtering and will be appreciate for any help. To make it easier I create some sample .pbix file that imitates my problem. I has data like this:
and if in my report has wide date slicer range it's works fine:
but problem is even if I select date for example from march 1 to march 12 I want still see those data even if no sales was in that period but company title filter and date max filter should still work. For example with that filter :
result should be:
with filters like what:
result should be:
as we see it should work like ignoring min date filter, but all ather filter should work as by default even max date filter. Now my measure looks like that
- Anonymous3 years ago
Hi AndrejZevzikov ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create 2 measures.
date_m = VAR _maxdate = MAXX ( ALLSELECTED ( 'Calendar' ), 'Calendar'[Date] ) RETURN IF ( MAX ( sales[Date] ) <= _maxdate, 1, BLANK () )result = CALCULATE ( MAX ( sales[sales before] ), FILTER ( ALL ( sales ), sales[Company id] = SELECTEDVALUE ( sales[Company id] ) && sales[deleted] = "0" && [date_m] = 1 ) )How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ PollyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- AndrejZevzikovHelper I
https://www.dropbox.com/s/5fsou2gfkwkbly3/problem.pbix?dl=0 add link to .pbix file
- AnonymousNot applicable
Hi AndrejZevzikov ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create 2 measures.
date_m = VAR _maxdate = MAXX ( ALLSELECTED ( 'Calendar' ), 'Calendar'[Date] ) RETURN IF ( MAX ( sales[Date] ) <= _maxdate, 1, BLANK () )result = CALCULATE ( MAX ( sales[sales before] ), FILTER ( ALL ( sales ), sales[Company id] = SELECTEDVALUE ( sales[Company id] ) && sales[deleted] = "0" && [date_m] = 1 ) )How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ PollyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.