Forum Discussion

ncbshiva's avatar
ncbshiva
Icon for Advocate V rankAdvocate V
7 years ago
Solved

Check whether the Date exists between Current Date and Last 2 month

Hi Team,   I want to count the deliveries made between selected month&year and last 2 month&year. For example i have ordered a phone and it got delivered on 15th May 2019. I have a Date Dimension ...
  • ncbshiva's avatar
    ncbshiva
    7 years ago

    parry2k  Thanks for the reply.

     

    As mentioned i have a Date Dimension table and Transaction table where i have product and Delivery Date.

    Relationship has been setup between two table with Date and Delivery Date.

    Not sure which date to use in the DAX formula.

     

    I am using Month and Year filter from the Date Dimension and i need to check whether my delivery date falls between selected Month,Year and the Delivery Date. Please find below the sample data and expected result as delivery count.

     

    Delivery DateProduct CodeProductDelivery Count
    15-5-201911055Mobile1
    10-4-201911055Laptop1
    21-2-201911065Ear phone0
    5-3-201911077Adapter1

     

    Please help me with the DAX expression for this.

     

    Regards

    SHIVA