Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
anirudhrao92
Contributor II
Contributor II

qliksense column header to rows

Hi,

can we change column headers in qliksense straight table to row headers 

i want some thing like this in qliksense 

staright table Actual

Citysales
adb23
nrl 
kkr22
 34
blr45

 

Desired result

 Sum count of Nulls
city41
Sales1241

 

is it possible in Qlik sense ?

 

Thanks in Advance

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

this will do for you


table1:
LOAD
City,
sales
FROM [lib://TEST/table.xlsx]
(ooxml, embedded labels, table is Sheet1);

Tabke2:
load
'Sumofsales' as DIM,sum(sales) as Totalsale,Sum(if(isnull(sales) OR Len(Trim(sales)) = 0, 1, 0)) as NULLCOUNT Resident table1 ;

Concatenate

load
'NoofCities' as DIM,Count(City) as Totalsale,Sum(if(isnull(City) OR Len(Trim(City)) = 0, 1, 0)) as NULLCOUNT Resident table1;

Channa

View solution in original post

3 Replies
Channa
Specialist III
Specialist III

this will do for you


table1:
LOAD
City,
sales
FROM [lib://TEST/table.xlsx]
(ooxml, embedded labels, table is Sheet1);

Tabke2:
load
'Sumofsales' as DIM,sum(sales) as Totalsale,Sum(if(isnull(sales) OR Len(Trim(sales)) = 0, 1, 0)) as NULLCOUNT Resident table1 ;

Concatenate

load
'NoofCities' as DIM,Count(City) as Totalsale,Sum(if(isnull(City) OR Len(Trim(City)) = 0, 1, 0)) as NULLCOUNT Resident table1;

Channa
Channa
Specialist III
Specialist III

take qvf

Channa
tush
Creator II
Creator II

Hi,

     you can use the transpose option to do so,

another solution is like you can do it in data load editor as well

Please check below URL for better understanding :-

 

https://community.qlik.com/t5/Qlik-Sense-App-Development/How-to-convert-columns-to-rows-in-the-data-...

 

 

Thanks

Tushar