Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikSenseUser2
Contributor III
Contributor III

Count If

QlikSenseUser2_0-1652187185768.png

 

I'm trying to write a function that will divide the count of the Trailer Num with a  LINEHAUL_GROSS> 0  by the total count of the Trailer Num.

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

count( {<[Trailer Num]={"=sum(LINEHAUL_GROSS)>0"}>} DISTINCT [Trailer Num])/ count ( distinct  total [Trailer Num] )

 

Refer this blog for more 

https://community.qlik.com/t5/Qlik-Design-Blog/The-Expression-Search/ba-p/1463907

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
durgesh22
Creator
Creator

try below expression, hope it help.

count(distinct {<LINEHAUL_GROSS={'>0'}>}[Trailer Num])/ count ( distinct  total [Trailer Num] )

vinieme12
Champion III
Champion III

As below

count( {<[Trailer Num]={"=sum(LINEHAUL_GROSS)>0"}>} DISTINCT [Trailer Num])/ count ( distinct  total [Trailer Num] )

 

Refer this blog for more 

https://community.qlik.com/t5/Qlik-Design-Blog/The-Expression-Search/ba-p/1463907

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
QlikSenseUser2
Contributor III
Contributor III
Author

Thanks, This worked.