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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
jagan
Partner - Champion III
Partner - Champion III

Is this Excel Calculation possible in Qlikview?

Hi Friends,

I have to do one calculation in Qlikview which is done in Excel, need to replicate the same calculation in Qlikview.  Please refer the attached excel file and refer column C for the formulae.  I tried using Below(), but now working as expected. 

Thanks for your suggestions in advance.

Regards,

Jagan.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Hi Jagan,

Probably you are missing TOTAL keyword. Please find here your expected output attached

View solution in original post

6 Replies
tresesco
MVP
MVP

Yes. Like attached sample.

MK_QSL
MVP
MVP

T1:

Load *, RowNo() as NO Inline [

Group, Sales

1, 100

2, 150

3, 200

4, 100

];

Join

Load NO,

  IF(RowNO() = 1, 0, RangeSum(Peek(CalcValue),-Previous(Sales))) as CalcValue

Resident T1

Order By NO desc;

anbu1984
Master III
Master III

Temp:

LOAD Group,

     Sales   

FROM

[Test Values.xlsx]

(ooxml, embedded labels);

Result:

LOAD *

  , if(RowNo()=1, 0,Peek(Calc)-Previous(Sales)) as Calc

Resident Temp

Order by Group desc;

drop table Temp;

jagan
Partner - Champion III
Partner - Champion III
Author

Hi Tresesco,

I applied the same logic in my Dashboard the values are not matching with the Qlikview expression and Excel Calculation.

Please find the attached updated Excel file , need to do the same calculation in Column D of excel file in Qlikview.

Regards,

Jagan.

tresesco
MVP
MVP

Hi Jagan,

Probably you are missing TOTAL keyword. Please find here your expected output attached

jagan
Partner - Champion III
Partner - Champion III
Author

Thanks Tresesco.  Missed Total in the expression.

Regards,

Jagan.