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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
aisolomatin
Contributor III
Contributor III

Ad-hoc reporting, set analysis

Hi, there!

Need your help with issue: I need to make expression, that will calc a Sum(Value) for max DateReport.

But if DateReport has added to table as Dimension, then I need to get Sum(Value) for current DateReport.

Here example. I try to use expression

=If(Dimensionality()=0,

  Sum({<DateReport={"$(=Max(Date(DateReport)))"}>}Value),

  Sum(Value)).

But problem is that it works fine for first table, but doesn't work for second.

Ex_2.png

Second table should look like this:


Ex_2_2.png


I need to use it in Ad-hoc reporting, so I have one table with all Dimensions (users choose Dimensions for table by themselves), and I need one expression.

Labels (1)
33 Replies
aisolomatin
Contributor III
Contributor III
Author

Still no, because if I remove Dimension [DateReport] from table. the result will be like this:

Ex_2_8.png

But I need like this (sum for max(Datereport)):

Ex_2_2.png

Anil_Babu_Samineni
MVP
MVP

Check this May be?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vishsaggi
Champion III
Champion III

Ahhh. I got it now. Its is like more dynamic addition of Dimensions. Need to work on it. I am out now will try once i come back.

vishsaggi
Champion III
Champion III

Check this?