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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

creating a version specific field

I have a field that is version specific so it changes daily and weekly. In my data, I have the option whether to see daily data or weekly data. Is there any way I can create a field in a chart where even though I have daily filtered, it shows me a weekly value.

versionproductlocationdaily orders
dailyAFlorida10
BNew York10
versionproductlocationweekly orders
weeklyAFlorida20
BNew York20

I want a chart where it shows me this: what expression can I use to to associate weekly and version to create a new field?

versionproductlocationdaily ordersweekly orders
dailyAFlorida1020
BNew York1020
1 Solution

Accepted Solutions
maxgro
MVP
MVP

remove version dim

sum({$ <Version={Daily}>} Orders)

sum({$ <Version={Weekly}>} Orders)

View solution in original post

6 Replies
Not applicable
Author

Hey, this should be possible using set analysis. Will be easier to help if you can share the expression for weekly and daily values.

Not applicable
Author

The expression is just the field names from the upload file. It would be just =orders (but there will be orders from weekly and daily version)

The file would have

Version, Product, Location, Orders

daily, A, Florida, 10

weekly, A, Florida, 20

daily, B, New York, 10

weekly, B, New York, 20

Not applicable
Author

To begin with

If you know how to add calculated dimension, then just add 'daily' as a dimension and don't add the field version.

If you don't, then just remove the field 'version' as dimension.

then for the expression, try this -

Expression1 - daily orders

if(version = 'daily', Orders)

Expression2 - weekly orders

if(version = 'weekly', Orders)

Not applicable
Author

It doesn't work. See attachment

maxgro
MVP
MVP

remove version dim

sum({$ <Version={Daily}>} Orders)

sum({$ <Version={Weekly}>} Orders)

Not applicable
Author

Thank you all for your help