Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Missing Dimension

I want to populate a dimension even if it's missing in a year.

For example

In 2014 I have six models with sales

But in 2013 I only show 5 models because there are no sales for the sixth group. The users still want to see the group but with 0.

And when I do percentage change from 2014 to 2013 the sixth model is not shown because in 2013 the group is not there.

But instead they want to see 100% increase/change in 2014 since no sales for that model in 2013.

8 Replies
MK_QSL
MVP
MVP

Like  this?

whiteline
Master II
Master II

Hi.

So you have to add these zeros to your data model.

its_anandrjs

Use suppress when value null in the chart and uncheck  from the chart properties.

Not applicable
Author

You are correct except that the previous year and current year are filter selections.

So Model is a dimension and I am counting sales with expression

=sum( sales) -- for current year

=sum({<season=,season=[Previous]>} sales) -- Previous year

= (sum(sales)- sum({<season=, season=[Previous]>}  sales))/ sum({<season=, season=[Previous]>}  sales) -- Percentage or difference between two years

Not applicable
Author

I thought about this but did not try. I can try it and let you know.

Not applicable
Author

I tried it does not help.

MK_QSL
MVP
MVP

TRY

ALT((sum(sales)/sum({<season=, season=[Previous]>}  sales))-1,1)

Not applicable
Author

use populate missing cells in chart properties