Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Showing column total in a row

Hi,

I want to show the total of colmun Moving Range (which we can see is equals 14)  in the Total moving range column. I think the formula should be

sum(total [Moving Range])  but for some reason not working. Does anyone know where I am going wrong?

Thank you for your help.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Try this formula:

BOTTOM(RANGESUM(RANGESUM(fabs(above(DataPoint) - DataPoint)), ABOVE(RANGESUM(fabs(above(DataPoint) - DataPoint)), 1, ROWNO())))

tks

View solution in original post

12 Replies
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

you can not use the Column Name [Moving Range] for sum Total, you must use the fieldname or the whole expression of the column [Moving Range], somethiong like:

sum(total Sales)

Not applicable
Author

Brenner,

I have tried to insert the formula instead sum(total [fabs(above(DataPoint)-DataPoint)) but still does not work, any suggestions?

Thank you

Dave

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Do you mean to say You want to show 14 in every row.

Regards,

Kaushik Solanki   

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Kaushick,

Yes, I can then use this for some other calculatioins.

Look forward to your reply

Dave

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Sorry friend i think its not possible.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Haycockd, i opened your file and i didnt reach your issue.

If u r trying to get the cummlative total u can use different expression into Total Moving Range:

fabs(above(DataPoint)-DataPoint)) + if( rowno()=1 or rowno()=2, above ([Total Moving Range]) .

Not applicable
Author

No don;t need the cummlative total all I am treying to do is show the total of moving range in the total moving range column .

As you can see in my total if we add together the moving range it equals 14. I want this figure repeated in each of the Yearmonth rows.

This is something I can easily do in excel so finding it very frustrating.

Thank you for your help

pat_agen
Specialist
Specialist

hi,

the difference being that in xl you can reference the cell that contains the value 14 from your chart.

In Qlikview you cannot do this - you have to be able to replicate the calculation. As your calculation references lines dynamically - using the above function - I would agree with Kaushik in saying this wont be possible.

However if you calculate this at script run time the value you have in the "Moving range" column can then be as easily summed and used as the DataPoint column.

This is one area where qv is different from xl.

see attached qvw

sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi,

Please find the attachments.

I hope this is what u r looking!!!!!!!!!!!!!

Regards

Sathish