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

SetAnalysis to count records based on comparison of 2 separate expressions

I want to count no of records (distinct dates) where Exp1 is greater than Exp2 and present that output in a TEXT BOX.

I am able to achieve this in a straight table, by using IF Conditions, and Counting the Flag in the TOTAL row. But what i actually want is, to present this in a text box (Like a KPI).

lightsection_0-1591674073716.png

Count: If($(Exp1) - $(Exp2) > 0, 1, 0)

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Maybe like this

Count({<Date={"=$(Exp1) >$(Exp2)"} >} distinct Date) 

View solution in original post

1 Reply
Vegar
MVP
MVP

Maybe like this

Count({<Date={"=$(Exp1) >$(Exp2)"} >} distinct Date)