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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sharanqlik
Contributor III
Contributor III

Compartmentation in Qlik Sense Table for calculation

Hi All,

I am facing a scenario where I need to show measure value only if its not already shown in earlier (or later) row with condition.

Consider below input data -

Product Theme Type Value
A Credit Credit 100
A Credit Equity 100
A Credit General 100
B Equity Real Estate 50
B Equity General 50

 

Here Theme of product is always same but Type changes as per sale. The output I want in visualization is -

Product Theme Type Value
A Credit Credit 100
A Credit Equity 0
A Credit General 0
B Equity Real Estate 0
B Equity General 50

Meaning -

For any product, If Theme = Type then show value ( as first row for product A) else for any product if Theme and Type never match then show value in front of General Type (as second row of product B). Notice that third row of product A is value 0 because there is already a Theme and Type match for product A which is not there in product B.

 

Labels (1)
10 Replies
sharanqlik
Contributor III
Contributor III
Author

Thanks Vincent. This worked as expected.

I am still making some adjustments but this solved the problem, thanks.