Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use 'Total' in case of multiple dimension values

Hi,

I am having dimensions  as Model,Version & Defects.

Data:

ModelModel VersionDEFECTSQuantity
XAXLAMP2
XBXBRAKE1
YBLAMP2

Summary:

ModelTotal Cars Produced
X2
Y1

Out put needed in straight table:

ModelNo of DefectsAverage Defects per Model= No of Defects /Total Cars Produced
X31.5
Y22

Current expression using

Dimension:Model

Expression: Sum(Quantity)/Count(Total Model)


It gives correct result in case of Single Model selected but failed in case of multiple model.

1 Solution

Accepted Solutions
Not applicable
Author

Hi Marc

Thanks, your solution  will worked if another summary table introduced in data model,

but is it possible to get the desired output without loading another summary table ?

View solution in original post

5 Replies
Anonymous
Not applicable
Author

See attached.

Marc.

anbu1984
Master III
Master III

=Sum(Quantity)/Count(Model)

jyothish8807
Master II
Master II

Hi Kauystubh,

Try this:

Dimension: Model

Exp:

sum(Quantity)/[Total Cars Produced]

Regards

KC

Best Regards,
KC
Not applicable
Author

Hi Marc

Thanks, your solution  will worked if another summary table introduced in data model,

but is it possible to get the desired output without loading another summary table ?

senpradip007
Specialist III
Specialist III

PFA. Hope it will meet your requirement.