Forum Discussion

AndrejZevzikov's avatar
3 years ago
Solved

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...
  • Anonymous's avatar
    Anonymous
    3 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 _ Polly

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