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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
clovati
Partner - Creator
Partner - Creator

Total without selection

Hi all,

I have this:

LOAD * INLINE [

    Continent, Country, Town, Revenue

    EUROPE, ITALY, Milan, 100

    EUROPE, ITALY, Turin, 200

    EUROPE, ITALY, Rome, 300

    EUROPE, ITALY, Naples, 400

    EUROPE, FRANCE, Paris, 10

    EUROPE, FRANCE, Bordeaux, 20

    EUROPE, FRANCE, Mareille, 30

];

If I create a list box for Town, I want anyway the whole TOTAL for COUNTRY and CONTINENT... how can I do?

In other words:

without selection I obtain:

butta1.PNG

And If I select just Paris, Mlan, Naples I would obtain this, with alla totale values laike having not done any selection:

butta2.PNG

Thank in advance!

1 Solution

Accepted Solutions
sunny_talwar

Not sure, but may be you need this (I used Anil's qvw to test this.... pfa the modified version)

=If(Dimensionality() = 3, Sum(Revenue), Sum({<Town>}Revenue))

View solution in original post

2 Replies
Anil_Babu_Samineni

i am not facing any issue

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Not sure, but may be you need this (I used Anil's qvw to test this.... pfa the modified version)

=If(Dimensionality() = 3, Sum(Revenue), Sum({<Town>}Revenue))