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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
maxronny
Contributor III
Contributor III

help on creating pivot table with formulas

i am not able to create a pivot table in qlikview.

1) i have an excel file imported in qlikview:

DATEPROJECTCODEREVENUESCOSTS
31/12/20183078                              1.000,00       900,00
31/12/20183126                              1.100,00       990,00
31/12/20183149                              1.210,00    1.089,00
31/12/20183169                              1.452,00    1.306,80
30/06/20193078                              1.597,20    1.437,48
30/06/20193126                              2.395,80    2.156,22
30/06/20193149                              2.635,38    2.371,84

 

2) in qlik view i wanna create these columns (red type) wih formulas but i am not able:

DATE30/06/201930/06/201931/12/201831/12/2018 30/06/201931/12/2018revenues 2019vs2018costs 2019vs2018profit/loss 2019vs2018
PROJECTCODESum(REVENUES)sum(COSTS)Sum(REVENUES)sum(COSTS) profit/lossprofit/loss   
30781597,21437,481000900 159,72100597,2537,4859,72
31262395,82156,221100990 239,581101295,81166,22129,58
31492635,382371,84212101089 263,5381211425,381282,842142,538
31690014521306,8 0145,2-1452-1306,8-145,2

 

attached the qvw file

any suggestion? thank you in advance

1 Solution

Accepted Solutions
maxronny
Contributor III
Contributor III
Author

I found the solution.

DSUM in excel file can be written in qlik like this:

=Sum({<[DATE] = {'31/12/2018'}>} [REVENUES])

View solution in original post

3 Replies
martinpohl
Partner - Master
Partner - Master

see attached

Regards

maxronny
Contributor III
Contributor III
Author

thank you very much for your reply.

can you tell me how can i get these other columns

revenues 2019vs2018costs 2019vs2018profit/loss 2019vs2018
   
597,2537,4859,72
1295,81166,22129,58
1425,381282,842142,538
-1452-1306,8-145,2

 

thank you very much for your support.

maxronny
Contributor III
Contributor III
Author

I found the solution.

DSUM in excel file can be written in qlik like this:

=Sum({<[DATE] = {'31/12/2018'}>} [REVENUES])