Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
jyothish8807
Master II
Master II

How to create static dimension in pivot table (QV)

Hello All,

I am facing issue in achieving a requirement in QV.

I am using a pivot table and I am dragging my Month Field on the top and taking rolling 12 month sum(Revenue) as expression.

I want to keep my rolling 12 month static and should show ‘0’ if a particular user doesn’t have any value corresponding to that product and Month.

Currently whenever I select any user it shows value to only those Months and products for which he have values.

When All Users selected:

   

Product 2014-042014-052014-062014-072014-082014-092014-102014-112014-122015-012015-022015-03Total
A 0.760.440.050.630.180.560.290.260.740.710.890.205.51
B 0.520.040.970.810.090.610.150.030.380.990.320.124.91
C 0.880.960.690.320.230.240.290.130.210.180.650.954.78
D 0.180.270.830.790.571.000.460.580.220.120.860.135.88
E 0.440.990.400.070.130.420.980.070.620.300.230.514.65

When a particular user selected:

   

Product 2014-042014-092014-102014-112014-122015-03Total
A 0.570.560.620.070.690.432.94
B 0.140.120.770.850.160.172.21
C 0.910.040.190.180.870.242.42

My Actual Requirement:

   

Product 2014-042014-052014-062014-072014-082014-092014-102014-112014-122015-012015-022015-03MAT
A 0.5700000.560.620.070.69000.432.94
B 0.1400000.120.770.850.16000.172.21
C 0.9100000.040.190.180.87000.242.42
D 0.000.000.000.000.000.000.000.000.000.000.000.000.00
E 0.000.000.000.000.000.000.000.000.000.000.000.000.00

Please let me know if any additional information is required.

Regards

KC

Best Regards,
KC
22 Replies
settu_periasamy
Master III
Master III

Hi Sarfaraz,

I don't use any special expression. Just i did the below,

In the Dimension tab, I checked, Show All value, and In the Presentation tab, Unchecked the Suppress zero values option.

jyothish8807
Master II
Master II
Author

Peter we have tried that also, but the issue is that the app will be updated on a daily basis and we have more that 300 users so we don't want to keep updating a manual data.

Regards

KC

Best Regards,
KC
Peter_Cammaert
Partner - Champion III
Partner - Champion III

You do not need to do this manually! Your LOAD Script can simply add missing combinations of user/period with zero amounts automatically. Due to containing zero amounts in the first place, they will not appear in any chart by default, but will let you impose good behavior when needed.

jagan
Luminary Alumni
Luminary Alumni

Hi Jyothish,

It is not possible, we need to create the records for those users with 0 values, then only it is possible to achieve this.  If you attach some sample data we can automate this in script itself.

Regards,

Jagan.

jyothish8807
Master II
Master II
Author

Thanks jagan, i did the same.

Best Regards,
KC
sarfaraz_sheikh
Contributor III
Contributor III

Dear Jagan,

can u please keep any example for my understanding ....so that it would be more appreciable...

Sarfaraz

jagan
Luminary Alumni
Luminary Alumni

Hi,

I don't have the script right now.  May Jyothish Kc can add which he did.

Regards,

Jagan.

jyothish8807
Master II
Master II
Author

Hi Jagan ,

I simply created a additional table with User name, Date, product and Sales and assigned '0' as sales for all months and product then joined concatenated with my master sheet.

Regards

KC

Best Regards,
KC
Peter_Cammaert
Partner - Champion III
Partner - Champion III

You can mark your own last reply as a correct answer if you want. The big advantage lies in the fact that a correct answer will appear in the same frame as the original post. In that way, visitors that are looking for a solution to a similar problem aren't forced to read the whole thread. Go ahead!

tyagishaila
Specialist
Specialist

Hi Kc,

You can try this,

if(Datadate, Value, '0')

if you find this is not solution of your problem. than let me know because I have faced this problem . May be I can give more solutions.