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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple Table & Total for Some Values

Hello!

I have a simple table like this:

AnomalyQuantity%Observations
30100%10
With Anomaly1550%3
No Anomaly1033,33%5
Pending516,67%2

Anomaly is a Calculated Dimension

Quantity, % and Observations are Expressions

The Calculated Dimension for Anomaly is the following:

= IF (ISNULL (FLAG_ANOMALY), 'Pending', FLAG_ANOMALY)

The thing is that I want my table to only have the following: With Anomaly and No Anomaly (I don't want to show the Pending).

But if I do that and I take out the null values from the table, I get something like this (look at the %😞

AnomalyQuantity%Observations
2583,33%8
With Anomaly1550%3
No Anomaly1033,33%5

And I want to show the 100% for those two values...

Maybe my Expression for % has something to be with that, because I count over the total:

COUNT ({$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)
/
COUNT (TOTAL {$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)

Is there any way to show the total 100% only for With Anomaly and No Anomaly?

How could I do that?

Thank you!!!

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Use the expression:

=COUNT ({$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)

and mark 'Relative' in the expression tab.

View solution in original post

3 Replies
tresesco
MVP
MVP

Use the expression:

=COUNT ({$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)

and mark 'Relative' in the expression tab.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Expression

=COUNT ({$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)


Now select the 'Relative' option in Expression tab, In Dimension table select the Dimension and check the Supress When Value is Null option.


Hope this helps you.


Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Use Relative or

COUNT ({$<ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)
/
COUNT (TOTAL {$<FLAG_ANOMALY={'*'},ID_TIME_DATE#={">=$(='$(vDateFrom)')<=$(='$(vDateTo)')"}>} DISTINCT ACCOUNT_ID)