Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am having one Brand X which is associated with Store Dimension A
Now suppose, Brand X association with Store Dimension is changed to B today. I don't have any date column in DB
How to cope up with this using SCD concept so that historical data is not altered.
Create qvds with date stamps so that although you don't have date in the main database, you can stamp them with date (pull date) when you store them into qvd
Create qvds with date stamps so that although you don't have date in the main database, you can stamp them with date (pull date) when you store them into qvd
Hi,
Maybe now you need to create a change_date_field to flag this and insert a date on every row until the next change..
When you get the data from the database, add a field with current date.
Something like this:
//(You need a script to create the StoredDate.qvd file for the first load)
Concatenate(StoredData) Load * from StoredDate.qvd
Load *
DimensionA,
today(0) as LastUpdate;
From Database;
//In case you need only the last update for each records, use this:
Load MaxString(DimensionA), Max(LastUpdate)
RESIDENT StoredData
GROUP BY DimensionA,LastUpdate;
Be careful that your date will only be loaded when you reload the qvw, so if you reload it every two days, you will have the data every two days and not the real change date.
Please can you share sample code
Please can you share sample code
Share some data
Haha..:P
i tried and got it
Thanks bhai
Super