Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

Need easy way for calculations

Hi all,

I'm New to Qlikview and i need to have below calculation,


quntitydifference



Jan15
feb205
march18-2
april4022

Like Thant.

I want to get the different with out adding a new feild in load statement?

Is there a way to get it?

Please help me

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try using chart inter record functions, like above().

I assume you've created a chart with a month dimension, and an expression with something like sum(Quantity).

The diff column could then look like

=sum(Quantity) - above(sum(Quantity))

View solution in original post

8 Replies
swuehl
MVP
MVP

Try using chart inter record functions, like above().

I assume you've created a chart with a month dimension, and an expression with something like sum(Quantity).

The diff column could then look like

=sum(Quantity) - above(sum(Quantity))

alwinsch
Creator
Creator

Create a table

with as dimension the months

and as expresions:

- Quantity with formula sum(if(month = '02',products,0))

- Difference with formula sum(if(month = '02',products,0)) - sum(if(month = '01',products,0))

This solved my problem.

Regards,

A.

anuradhaa
Partner - Creator II
Partner - Creator II
Author

Thanks, This works nice for me. Another one thing.

If i need to show - values in red color how can i do it?

Thanks For your help

MayilVahanan

Hi

     In expression tab, click the '+' sign and give text color or background color for your condition using if() or give simply RGB(124,123,123)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
anuradhaa
Partner - Creator II
Partner - Creator II
Author

i need to have Red colour for this,

so how to use if condition with that.

if (sum(Quantity) - above(sum(Quantity)) < 0) then how to get the red color

MayilVahanan

Hi

     Try like this,

Expression tab -> click '+' sign -> text color or background color -> in expression

     =

if (sum(Quantity) - above(sum(Quantity)) < 0, Red())

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
anuradhaa
Partner - Creator II
Partner - Creator II
Author

Great, Thanks

alwinsch
Creator
Creator

Hi,

Why don't you use, the tabpage

presentation or visual styles.

See the screenshot below

Visual_Style.png