I've got an interesting case here: I have a fact table of revenues with a few relevant fields:
My goal is to create a stacked bar chart wherein we show:
I've experimented with a number of constructions but I'm honestly at a loss here. I would have expected the following:
Sum({<[is_forecast]={FALSE}>,<initiative=>} amount_usd)
To work given my reading of various examples, but Qlik reports this as "Error in expression: '}' expected".
Any Set Analysis experts out there with suggestions?
Thanks!
Try this:
Sum({<[is_forecast]={FALSE},initiative=>} amount_usd)
Excellent, thanks!
I am still deeply unclear on when to segregate different clauses inside separate <> notations and how to concatenate those without throwing an error. (If there's no way to concatenate <> clauses, then I don't understand what those characters are there for)
A great tool is the Set Analysis wizard
http://tools.qlikblog.at/SetAnalysisWizard/
But basically the syntax is:
Sum({ $ <FieldName = {value(s)} > } FieldName)
and if you have multiple fields, then
Sum({ $ <FieldName1 = {value(s)}, FieldName2 = {value(s)} > } FieldName)