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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating % for specific combinations

I have a dataset listing events happening at a plant:

schermbron.jpg

the goal is:

- find cases where A+B happened on the samen day at a plant

- calculated the % of the total of events at that plant

schemresult.jpg

Grouping in the script is not the way to go, as there are other details in the dataset that need to be analysed.

Any hints on how to achieve this ?

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You could calculate your A+B same day column using this expression:

=sum(aggr(if(count(distinct event)=2,1,0),plant,date))

Hope this helps,

Stefan

View solution in original post

1 Reply
swuehl
Champion III
Champion III

You could calculate your A+B same day column using this expression:

=sum(aggr(if(count(distinct event)=2,1,0),plant,date))

Hope this helps,

Stefan