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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate a Nbr of Deals for one day

Hello Everyone,

I have to calculate a number of transactions of yesterday (one day ago).

For example if we are on september 25th, i must calculate automatically the number of transactions of September 24th

I have a variable witch  calculate a number of transaction : ($(vKPI_VolumeDealsSent(  , )) )

Then, this expression  “=$(vKPI_VolumeDealsSent(  , ))  “ calculate the number of transactions but for all dates.

in the QlikView GUI i have created a straight table

The date field : [Application Date]

The dimension field : [Primary asset class]

here is what i have calculate till now (for all date )  using this expression (= $(vKPI_VolumeDealsSent( , ))    )

PRIMARY_ASSET_CLASSnumber of transactions
304634
InterestRate113680
ForeignExchange120474
Commodity37357
Equity22539
Credit10584

My question : how I can calculate (in set analysis) the number of transactions of yesterday. (one day ago) ?

Thank you in advacnce for your suggestions

Best regards,

3 Replies
swuehl
MVP
MVP

Could you elaborate on

- the definition of your variable

- how your data model looks like, e.g. link from calendar to transaction

It's best if you could upload a small sample QVW, or some sample lines of data.

Not applicable
Author

Try this

=count({<date={'max(date)-1'}$(vKPI_VolumeDealsSent(  , ))>})

Not applicable
Author

Hello swuehl,

here is link for more details regarding my question

Average 30 last days for each date selected

Regards,