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

Simple calculation: No value?

I've just started experimenting with QV. I added a simple gross margin calculation (JanProfit/JanRev) and ended up with a lot of null values (or whatever a minus means).

Any help would be greatly appreciated.

RG

20120405_QlikView_GrossMarginError.jpg

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

How about:

Sum(JanProfit)/Sum(JanRev)

View solution in original post

3 Replies
m_woolf
Master II
Master II

How about:

Sum(JanProfit)/Sum(JanRev)

Not applicable
Author

That did it. Can you explain why however?

Not applicable
Author

You need to tell it what to aggregate that's all. Do you want to sum your measure, count, count distinct etc? Because you could do count(JanProfit)/Count(JanRev) as well and it would intuitively produce different results.

I'm no expert however.