Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Adamo
Contributor III
Contributor III

Grid Table with same dimension in Row and Column

Hi,

I am using QSB  and my data source looks like this :

 

Order_idClient_idData_typeDate
10012301Sales_date01/01/2020
10012301Order_date01/01/2020
10012301Install_date01/01/2020
10012301Cancel_date01/01/2020
10022302Sales_date01/01/2020
10022302Sales_date01/01/2020
10032303Order_date01/01/2020

 

 

And I need to produce a graph like the following, that counts the orders ID that match both Dimesions. Row dimension and Column dimension is the same one. But pivot table does not allow to put the same dimension in both rows and columns.

 

 Sales_dateOrder_dateInstall_dateCancel_date
Sales_dateCount (order_id)Count (order_id)Count (order_id)Count (order_id)
Order_dateCount (order_id)Count (order_id)Count (order_id)Count (order_id)
Install_dateCount (order_id)Count (order_id)Count (order_id)Count (order_id)
Cancel_dateCount (order_id)Count (order_id)Count (order_id)Count (order_id)

 

Thanks in advance for your help!!

Labels (3)
2 Replies
msKarthikeyan
Employee
Employee

Hi,

You can add same dimension in pivot table by using columname&''

But i think that doesn't solve your problem.

do u want count of sales_date and order_date in row 2 column 1?

-Karthik 

 

Adamo
Contributor III
Contributor III
Author

@msKarthikeyan Thanks for your answer!!

Yess I need to see that in the table, becuase that solution column&"data_type" only fills values in the diagonal of the table and need to fill all cells with all possible combinations.  How many Order_id do have sales_date and order_date in row2 column1, I mean need to count all possible relations as shown in the table.

Is there something I need change in the script in order to get that kind of table?

 

Thanks in advance!!