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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
MuraliPrasath
Creator III
Creator III

Set Analysis Question.

Hi,

I've a Expression like this in Pie Chart.

sum({1<ShipmentStatus={'COMPLETED'}, Day={"=date($(vToday))"}>}DeliveredQty)

My question is, I have used '1'.  It should be ignoring ALL selections except for what I specified.  but if I select the CarFamily(this is the deminsion for Pie Chart)  it changes.


123.PNG

777.PNG

18 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Ok, so its not the variable. I suggest that you post your qvw or at least a sample illustrating the problem.

BTW - your variable should be defined:

LET vToday = Num(Today(1)));

(The Date() function here does nothing)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MuraliPrasath
Creator III
Creator III
Author

Hi,

Please help me here is my example Qvd and Spreadsheet.

Correct my Pie-Chart Expression. I don't need any selections. Pie-chart should ignore all the selections on the dashboard.

MuraliPrasath
Creator III
Creator III
Author

Hi Vimlesh,

Pls see below, I've uploaded the Qvw and flatfile. Pie-Chart should ignore all the selections on the dashboard.

Thanks in advance.

sasiparupudi1
Master III
Master III

May be try

sum({1<ShipmentStatus={'COMPLETED'}, Date={"=($(vToday))"}>}DeliveredQty)

MuraliPrasath
Creator III
Creator III
Author

still no luck !!

Not applicable

Hi Murali,

you are using Day rather than a date field in your set analysis, which is causing you problems.

Use

sum({1<ShipmentStatus={'COMPLETED'}, DATE={"$(=date(vToday))"}>} DeliveredQty)

and just an FYI you have no data for the today set in the example, you nee dot go back to 23rd July to show some data

hope that helps

Joe

sasiparupudi1
Master III
Master III

Hi

I am getting the following output when I use the expression

sum({1<CarFamily=,DeliveredQty=,DistChannel=, ShipmentStatus={'COMPLETED'}, Date={"=date($(vToday),'MM/DD/YYYY')"}>}DeliveredQty)

and the pie chart does not change with the selections.Is this what you are expecting to see for todays date?Untitled.jpg

Not applicable

FYI 'Date' isn't a field in the data model so that section of the set analysis isn't doing anything.

So you are actually getting all Completed QTY for the entire data set, not all Completed QTY for today

Joe

Anonymous
Not applicable

I like Joe's answer. If you have an actual shipment date to use for DATE, this works perfectly.