Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

Hi friends, How can I count countries with <4% Margin / count of total countries?

Hi friends,

I have the following chart which shows Margin by customer:

The expression for my Margin is:

Sum(Margin)/Sum(LineSalesAmount)

How can I create another chart based on the above where I want to get the count of countries with margin < 4% / count ALL countries?

I can't figure out how to create this type of expression.

2 Replies
sunny_talwar

May be like this

Count({<Country = {"=Sum(Margin)/Sum(LineSalesAmount) < 0.04"}>}Country)

Anonymous
Not applicable

Sum(LinesalesAmount) /

Max(Total Aggr(Sum([LinesalesAmount]), Country))