Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Suppress Values in Calculated Dimensions

Hello,

I want to show the sales forecast per week for my top 5 sellers till date in line chart.

The data is as follows:

Model_NameMonth_WeekUnits SoldForecast_Run_1Forecast_Run_2

The data is there for Jan to June however the forecast is only for the 4 weeks of June,2015.

I have achieved the same by creating a line chart Month_Week as one dimension and another calculated dimension Model which is as follows:

=If(Match(Model_Name,if(Aggr(Rank(Sum({1}Units_Sold)),Model_Name)<=5,Model_Name)),Model_Name,'Others')

I am getting the following result:

Top Sellers.png

I am getting the required products,but also getting an Others field,which comes as a - if not included in the if condition for calculated dimension. I want to get rid of this field. I have tried using Dimension Limits but to no avail.

Please suggest a solution.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try using this as calculated dimension:

=Aggr( If(Rank(Sum({1}Units_Sold))<=5,Model_Name),Model_Name)


and enable 'Suppress when Value is NULL'

on dimension tab

View solution in original post

2 Replies
swuehl
MVP
MVP

Try using this as calculated dimension:

=Aggr( If(Rank(Sum({1}Units_Sold))<=5,Model_Name),Model_Name)


and enable 'Suppress when Value is NULL'

on dimension tab

Not applicable
Author

Thanks Stefan,

This works. My first question on the community answered in record time.

I tried the 'Suppress when Value is NULL' option with my original expression, but it did not work.

Could you explain this solution in a bit more detail ?

Thanks.