Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
talking about expressions, how can I refer the measure (column) itself into a color expression ?
In the above example, if "Sales" is a measure (let's say, "sum(sales_value)") what is the color expression used to alter background color ? Probably, "if(sum(sales_value)>100000,green(),white())". But if it is a more complex measure, could be possible refer itself with something like: "if([my_self]>100000,green(),white())" ?
I'm using Qlik Sense 1.0.2
Thanks.
Hi Paolo - that will work - only if this complex expression is created in the load script as part of the data mode and not as a Measure in the list of Master Items.
Is that clear? Let me know if you need an example.
Mike
Hello Paolo - I created a new thread for your discussion.
Check this out Color by Expression
Let me know if this is what you need:
Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.
Regards,
Mike Tarallo
Qlik
Hi Michael,
not exactly. In your example you have "if(Sum([Sales Margin Amount])/...". In my case I've a "pre-defined" and complex measure as column in my table (named "DoD pct."). I'd like to write my color expression with something like "if([DoD pct.]/...", in other words a way to refer the column I'm writing in the color expression, by absolute (column/measure name) or relative (e.g. "myself","this") id.
Hi Paolo - that will work - only if this complex expression is created in the load script as part of the data mode and not as a Measure in the list of Master Items.
Is that clear? Let me know if you need an example.
Mike
It is a Master Item...
Do you plan to add this feature in next Qlik Sense releases ?
Thanks again.
Paolo.
Hi Paolo,
Yes it is on the roadmap to make various improvements such as this.
If you can, please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.
Regards,
Mike Tarallo
Qlik
Agree
Hopefully this is planned for a future release
Otherwise it defeats the purpose a bit of having pre-defined measures set up in this way
BTW I thought Measure in the list of Master Items was a great idea. I wish they had this in QV. Variables is OK but is a bit limited
These Measure in the list of Master Items should work exactly as if they had been set up in the script. Including in colour expressions.
Including being able to further filter
eg
One measure could be included in another measure
sum ({< Customer = {ABC}>} Mastermeasure)
NB TBH I'm unsure if this can be done at present
I'd like to mark the answers but I don't see how to do it, even I'm correctly logged in...
I fixed it - the new thread i opened was not marked as a question, I modified it. Sorry about that.
I agree with that, Master Items nesting would be another interesting and useful feature.
Ciao.
Paolo.