Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Register by January 31 for $300 off your Qlik Connect pass: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression

Hi all

I got this table:

123.png

Now I got a problem. Got 2 expressions first 1 for the total km, second one for km outside.

However in my second expression there is no data for vehiclecategory B but it keeps filling it with 0's. Is it possible to solve this?

Do I need to start looking my excel? Script?

kind regards

11 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

That's not what I had in mind. Something more like

If(Sum(Aggr(<the chart expression>, Production.VehicleCategory, Week, DivisionName)) <> 0, Production.VehicleCategory, null())

Then enable Suppress nulls for that dimension.

You might need something like Sum(TOTAL <Week, DivisionName> Aggr(...))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

My previous reply was posted before I saw your post.

So these two columns are two expressions? Then what I had in mind won't work, I am afraid. I had assumed that Total KM and Km Outside were coming from a field.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein