Forum Discussion

abhishekc1's avatar
abhishekc1
Frequent Visitor
7 years ago
Solved

Dynamically change state based on date slicer - help required

Hi All,

 

I have a table that looks like this:

 

LocationStart Date
loc 11-Jan-19
loc 213-Feb-19
loc 317-Feb-19
loc 41-Aug-18
loc 51-Jun-19
loc 613-May-19
loc 712-Apr-19

 

This table has a one to many relationship with my main data (DATA) table that contains an order date. This DATA table also has a many to one relationship with a date table that i created. I would need your help with the following:

 

I need to add a state to each of these locations based on the date selected using a slicer/filter. The expected output for Feb 2019, May 2019 and June 2019 could be as follows:

 

LocationFeb StateMay StateJune State
loc 1OldOldOld
loc 2NewOldOld
loc 3NewOldOld
loc 4OldOldOld
loc 5Not launchedNot launchedNew
loc 6Not launchedNewOld
loc 7Not launchedOldOld

 

Any help would truly be appreciated. 

 

 

9 Replies

    • abhishekc1's avatar
      abhishekc1
      Frequent Visitor
      You are a saviour! I can’t thank you enough for this Ashish. Thanks a lot for taking some time out to help me out
      • abhishekc1's avatar
        abhishekc1
        Frequent Visitor

        I could use some more help though Ashish. One small modifications i what i am looking for:

         For example: 

         

        If the slicer was set for dates between Feb 2019 to May 2019:

         

        a) Locations launched in June 2019 - need to be classified as Not yet launched

        b) Locations launched in March and April 2019 - need to be classified as New

        c) Locations launched before March 2019 -  need to be classified as old

        d) Locations launched in May 2019 - need to be classified as Launched this month