Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
stha142020
Contributor
Contributor

Count receipts with positive revenue

Hi,

I want to count receipts with positive revenue.

How do I write a set analysis  from Count(distinct Receipt) that returns receipt 1 and 3?

ReceiptRevenue
1100
2100
2-100
310
310
310
3-10

 

Thanks!

1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

Hi @stha142020 ,

try this:

Count(  {< Receipt = {"=Sum(Revenue)>0"} >} distinct Receipt )

I hope it can help.

Best Regards

View solution in original post

2 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @stha142020 ,

try this:

Count(  {< Receipt = {"=Sum(Revenue)>0"} >} distinct Receipt )

I hope it can help.

Best Regards

stha142020
Contributor
Contributor
Author

Thank you!