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: 
Not applicable

Unable to convert straight table to Pivot table

Hi all,

I have a straight table below. 'SEP' is expression:

   if(StartDate_WTH<='09/30/2015' and EndDate_WTH>='09/30/2015' and TenancyStatus_WTH='Vacant Tenantable'

   and (num('09/30/2015')-StartDate_WTH+1)>=15,1,0)

Sample.PNG

There are several problems:

1. The 'Expression Total' in Expression Tab didn't work. No total number showed.

s2.PNG

2.  I'd like to calculate the total number of each property. So I wrote expression:

sum(aggr(if(StartDate_WTH<='09/30/2015' and EndDate_WTH>='09/30/2015' and TenancyStatus_WTH='Vacant Tenantable'

   and (num('09/30/2015')-StartDate_WTH+1)>=15,1,0),Property_NO))

but there was no data.

3. I'd like to convert the straight table to pivot table. But there is error. No data in it.

Is there something wrong with my expression?

thanks

2 Replies
sasikanth
Master
Master

HI,

Please Attach your qvw, it would be helpful

jonathandienst
Partner - Champion III
Partner - Champion III

The dimensions in the Aggr() must include all the table dimensions. From your screenshot, Property_NO is not the only dimension

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein