Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
v_jaideep
Creator
Creator

Price Change%

Hello Experts,

I need to calculated Price Change % and Total Price Change % based on Name .I tried using previous(), aggr() but couldn't find workaround. Any help pls.

Below is the sample data . 

 

NameLaunch DateStart DateEnd DatePricePrice Change %Total Price Change%(Calculation)reference
A2-Nov-192-Nov-193-Mar-20 $   100.00   
A2-Nov-194-Mar-208-Sep-20 $     70.00 $              (0.30) (70-100)/100
A2-Nov-199-Sep-20  $     60.00 $              (0.40) $                        (0.40)(60-100)/100
B25-Mar-1825-Mar-1818-Oct-19 $   120.00   
B25-Mar-1819-Oct-192-Nov-19 $   110.00 $              (0.08) (110-120)/120
B25-Mar-183-Nov-193-Mar-20 $     80.00 $              (0.33) (80-120)/120
B25-Mar-184-Mar-20  $     230.00 $              0.92 $                        0.92(230-120)/120
1 Solution

Accepted Solutions
rubenmarin

Hi, you can try with Top(): (Price-Top(Price))/Top(Price)

View solution in original post

4 Replies
rubenmarin

Hi, you can try with Top(): (Price-Top(Price))/Top(Price)

v_jaideep
Creator
Creator
Author

Rubenmarin, Thanks for the response. But I have my requirement change. 😞

Can you please help on below post

https://community.qlik.com/t5/Qlik-Sense-App-Development/Current-Price-vs-Launch-Price/m-p/1795016/h...

rubenmarin

I see Rob has already answered, hope that helps, otherwise I didn't understand the bold launch prices, they are the same value as the price column.

v_jaideep
Creator
Creator
Author

I tried few possibilities using Intervalmatch() to get launch_price and current_price in same row for each product. Below is the table structure I have and expected data.

 

Table A:
Start_date,
End_date,
Local_Price,

currency,
key

Table B:
Launch_date,
product,country,area,region,province,size,unit

name,
key

 

Expected data in table should be as below:

Product     Current_Price    Launch_Price

AB               3788                         4450

AC               12.52                       18.52

AD                100                                90