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: 
User12321
Contributor III
Contributor III

Table Format

Hi,

I want to create a table with rows (no. of suppliers, avg no. of suppliers etc) and columns (current, previous year etc).

Please advise on how I can go about creating this table. Thank you!

Labels (1)
1 Solution

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, You can try like below.

Create an Inline and give order to each and every line:

Load * Inline [

KPI, SrNo

No of Suppliers,1

Avg no of supp,2

];

 

Now in straight table, you can put KPI as dimension and Measure 1 (Total Number) and use PICK() to calculate each cell in table like below

PickSrNo,

Count(Suppliers),

Sum(Avg no of suppliers)   )

 

For Measure 2 (vs Prev Year)

PickSrNo,

Count({<Prev Year>}Suppliers),

Sum({<Prev Year>}Avg no of suppliers)   )

 

and same for Measure 3.

Screenshot for reference :

AshutoshBhumkar_0-1632900774518.png

 

View solution in original post

6 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @User12321,

The required out will not achievable in a straight or pivot table. but you can create the same structure with the help of KPI and Text objects and place it like a table. 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, You can try like below.

Create an Inline and give order to each and every line:

Load * Inline [

KPI, SrNo

No of Suppliers,1

Avg no of supp,2

];

 

Now in straight table, you can put KPI as dimension and Measure 1 (Total Number) and use PICK() to calculate each cell in table like below

PickSrNo,

Count(Suppliers),

Sum(Avg no of suppliers)   )

 

For Measure 2 (vs Prev Year)

PickSrNo,

Count({<Prev Year>}Suppliers),

Sum({<Prev Year>}Avg no of suppliers)   )

 

and same for Measure 3.

Screenshot for reference :

AshutoshBhumkar_0-1632900774518.png

 

User12321
Contributor III
Contributor III
Author

For row avg no. of suppliers, it's showing - in the table. 

Not sure what I'm doing wrong. Please help.

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

That should work. Must be some bracketing issue.

Try putting the 1st measure in the second just to check if that appears or not.

E.g

Pick SrNo,

Count(Distinct Supplier),

Count(Distinct Supplier)  )

User12321
Contributor III
Contributor III
Author

Hello,

Tried bracketing it but still not working.

Any idea what else I can try to solve this problem?