Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Time slice in DAX

Hi All,

 

 Need help in deriving the below requirement when i execute on(Dax expression or any ways would do to derive the requirement)
Jan 1st - need the value of excluding of previoius 3 months of previous year
Feb 1st - No out put as Jan falls in the previous 3 months and has previous Year(November & December)
April 1st - No out put as Jan & Feb falls in the previous 3 months and also has previous Year(December)
March 1st -  No out put as Jan, Feb and April  falls in the previous 3 months and also has no months for current year.
May 1st - Display data of Jan and ignore the past 3 months (Feb, March & April) of current year.
June 1st - Display data of Jan & Feb and ignore the past 3 months (March, April & May) of current year .
and so on.

Execution dateJan 1stFeb 1stMar 1stApr 1stMay 1stJune 1stJuly 1st
        
Previous 3 months ignoredOct      
 NovNov     
 DecDecDec    
  JanJanJan   
   FebFebFeb  
    MarMarMar 
     AprAprApr
      MayMay
       June
        
Required Out in ReportJanNo DataNo DataNo DataJanJanJan
 Feb    FebFeb
 Mar     Mar
 Apr      
 May      
 Jun      
 Jul      
 Aug      
 Sep      

 

Regards,

Santosh

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    Ok even if i get Previous 3 months ignored & Required Out in Report

     

    Example when executed in Jan 1st  i must see

    Columns

    Dec,Nov,Oct & Sum of (Required Out in Report)

     

    I have tried in this format but facing issue can Experts help me in below syntax

     

    if Jan than (Dec,Nov,Dec and appropiate (Required Out in Report as given in excel below).

    Else Feb than(...........................

     

    Regards,

    Santosh

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Sam Zha,

       

      Can you please elaborate a bit more achieving this,

       

      Regards,

      Santosh