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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Equivalent of oracle expression

Hi

Is the below expression is equivalent to the oracle expression?

(count(jobid)/(sum(count(jobid) over (partition by pending_category)))*100 - Oracle

Count(JOBID)/(sum(Count(JOBID),PENDING_CATEGORY)) - Qlikview with Number format %

Some how i dont get the values correct with the above expression , please correct me if am wrong.

5 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

I think you are looking to use aggr() function together with sum. Search for AGGR() and you should see lot of useful examples you can use in your expression.

Rakesh

Anonymous
Not applicable
Author

first thing i used is , is there something wrong in this expression?

Count (JOBID)/aggr(Count(JOBID,PENDING_CATEGORY))

disqr_rm
Partner - Specialist III
Partner - Specialist III

Where do you have this expression? In a chart? What's you dimension?

Possible to post a sample app with little data?

In first look, I can see you missed the placement of dimension for aggr function. This may work:

Count (JOBID)/aggr(Count(JOBID),PENDING_CATEGORY)

But again, if this doesn't work, place a sample app with details of what you are trying to achieve.

Rkaesh

Anonymous
Not applicable
Author

Attached is the sample app, i want % of Jobs By pend Category.

Thanks!

disqr_rm
Partner - Specialist III
Partner - Specialist III

Try this one:

=Count (DISTINCT JOB_ID)/ aggr(NODISTINCT Count(DISTINCT JOB_ID), PENDING_CATEGORY)