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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
soha1902
Creator
Creator

Pivot Table

Hi All,

I created one report using Pivot Table. Where I am using three columns 1. Product, 2. Active Date and 3. Deactive Date.

I pivoted date field so if date field comes under Active Date and Deactive date then it will show 40 for particular product else null.

See below screenshot:

Chart1.pngthis report showing the correct data but as per requirement I dont want to include Activated and Deactivated column in report. Please see below screenshot:

Chart2.png

If I remove These 2 fields then this report not showing data for Prod A because its having the 2 Active and Deactive date.

Please find the demo app in attachment.

Thanks.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Put your if expression within sum(), like:      Sum(if(Date>=Activated and Date<= Deactivated,40,0))

Does it help?

View solution in original post

6 Replies
Anonymous
Not applicable

Here you go

soha1902
Creator
Creator
Author

You removed Active and Deactive column from Chart1. Now its also not showing data for Prod A. I want to remvoe Active and Deactive column but also want to show the values for Prod A.

Anonymous
Not applicable

was that in your "Chart I am Looking"?

I don't see that.

Can you elaborate the requirement?

arulsettu
Master III
Master III

can you post data source like excel

soha1902
Creator
Creator
Author

Any suggestions please.

tresesco
MVP
MVP

Put your if expression within sum(), like:      Sum(if(Date>=Activated and Date<= Deactivated,40,0))

Does it help?