Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Fragstuff
Creator II
Creator II

Help: Datamodel with multiple Intervalls and Facts

Hello together,

i would like to know if someone could please advise me in following problem:

For Example i prepared my Facttable like this:

IDStart_IDEnd_IDDim_1Start_Dim1End_Dim1Dim_2Start_Dim2End_Dim2
12021-01-012021-12-31A2021-01-012021-06-31A2021-01-012021-02-28
12021-01-012021-12-31A2021-01-012021-06-31B2021-03-012021-06-31
12021-01-012021-12-31B2021-07-012021-12-31C2021-07-012021-10-31
12021-01-012021-12-31B2021-07-012021-12-31D2021-11-012021-12-31

 

What would be the best method so that i can do following analysis:

  • The Status of the ID on a specific date (which Dim_1 | Dim_2 was active)
  • Showing every Dim on one Date_X_Axis
  • Assoziative filtering on Dim and ID should still be possible

Normally the Timeline has a range of 5 years and we deal with round about X Million Rows

  1. I created a Date_Link_Key (Start_ID & End_ID)  from one possible Date_Interval (1 out of eight )
    1. "num(Start_Date) & num(Ende_Date) as Date_Link,"
  2. Resident Load this Link in separate Table and extracted the Start & End Date again to intervallmatch my Mastercalender to create a DateBridge
    1. DateLink1:
      Load Distinct
      Date_Link,
      date(left(Date_Link, 5),'DD.MM.YYYY') as Date_Link_Start,
      date(right(Date_Link,5),'DD.MM.YYYY') as Date_Link_Ende

      Resident Faktentabelle;

    2. BridgeTable:
      Intervalmatch(Datum) //Datum from my Mastercalender
      Load Distinct
      Date_Link_Start,
      Date_Link_Ende
      Resident DateLink1
      ;

 

The Actual Data Model with a Date_Bridge on ONE Start|End _DIM (1 out of eight )

But how should i connect the Other (7) Start|End_Dim Intervalls without Circular Reference 😞

Fragstuff_0-1632990315496.png

 

I already read about

  • As of Calender
  • Canonical Date
  • Reference Date
  • Mastercalender
  • Intervalmatch()

but can't get a perfect DataModel out of this 😞

 

Every help would be appreciated 🙂 🙂 🙂

Greetings

Fragstuff

Only processes that are monitored can be improved
Labels (1)
0 Replies