Forum Discussion

Shinu1's avatar
Shinu1
Helper II
5 years ago
Solved

Selection filter

Hi, I have to make specific data selection from Raw data table based on Criteria table slicer.    RawData Table Source Date Ext Rev GFS 11/1/2019 182 GFS 1/1/2020 102 NONGFS 1/...
  • Fowmy's avatar
    Fowmy
    5 years ago

    Shinu1 

    Please use this measure:

    VisibleFlag = 
    
    VAR _VIEW = SELECTEDVALUE(Criteria[View]) 
    VAR _SOURCE =  SELECTEDVALUE('Raw Data'[Source])
    VAR _DATE = SELECTEDVALUE('Raw Data'[Date])
    RETURN
    IF( _VIEW = "Const",
        IF(_SOURCE = "Altn" && _DATE <= DATE(2020,3,31),1,0), 
            IF( _VIEW = "Org",
                IF( _SOURCE = "Altn" &&  
                    (
                        (_DATE >= DATE(2019,1,1) && _DATE <= DATE(2019,3,31)) || (_DATE >= DATE(2020,1,1) && _DATE <= DATE(2020,3,31))
                    )
                    ,1
                    ,
                    0)
                    
                ,
                0
            )
    )

     

    ________________________

    If my answer was helpful, please consider Accept it as the solution to help the other members find it

    Click on the Thumbs-Up icon if you like this reply 🙂

    YouTube  LinkedIn