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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with Comparison Date

Hi,

we do Forecasts based on two factors:

1. Comparison Date, e.g. we compare 2021/2/28 to 2020/3/1

2. Target-Factor, e.g. 1.1 (that means we want to have 110% of the revenue of the Comparison Date)

 

I want to do this with two tables in my Data Model:

1) Facts Table (Random Data)

LocationDateArticleIdRevenueLocation-Date
A2021/2/281231231231250.19A-2021/2/28
A2021/2/15123123451100.83A-2021/2/15
B2021/1/3123161200.21B-2021/1/31
C2021/4/1621361351351225.23C-2021/4/16
A2020/3/112312312312100A-2020/3/1
A2020/2/17123123451200A-2020/2/17
B2020/1/2823161100B-2020/1/28
C2020/4/1821361351351250C-2020/4/18

 

2) Comparison Dates and Factors (Random Data)

Location-DateComparison DateTarget Factor
A-2021/2/282020/3/11.1
A-2021/2/152020/2/171.2
B-2021/1/312020/1/281.3
C-2021/4/162020/4/181.1

 

The Result should look like (with the option to add ArticleNames or CommodityGroups as dimensions):

DateLocationRevenueTarget Revenue
2021/2/28A50.19110
2021/2/15A100.83240
2021/1/31B200.21130
2021/4/16C25.2355

 

Questions:

1) How can i do this with set analysis?

2) I think i get troubles with the ArticleId. On the one hand i want to compare commodity groups or even articles, and on the other hand i dont want to exclude articles if they were not sold at the date, but only at the comparison date.

 

Thanks alot!

 

Labels (1)
1 Reply
Anonymous
Not applicable
Author

What would be the best setup / solution for this problem? Thanks!