Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kulasekhar
Creator
Creator

How to change bellow Scenario

Hi All,

Scenario:  Product in one column, different dates in different columns

Data : provided in attached excel file.

  

Product12-Apr13-Apr14-Apr15-Apr
P1100200200700
P2200100300100
P3300300400300
P4400400500400
P5500600600600
P6600700700400
P7700100100500

Result should display as   :

Date |Product1 | PRoduct2 | Product3 | ....| in  a table 

Thanks,

Thimma

7 Replies
PrashantSangle

Hi,

Do you want in script???

If yes do transpose while loading data. in Enable Loading Transformation step->Rotate

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi,

Use Transpose when u r loading .

Regards,

Nagarjuna

Marcellino_Groothof
Contributor III
Contributor III

Hi,

Read the table file, header size = lines, then push button NEXT, then transpose.

Greetings,

Marcellino


ganeshreddy
Creator III
Creator III

Hi Shekhar,

Do following steps,

1. while loading select enable transformation

2. select rotate.

3 .apply transpose and the press right.

you will get your desired result.

Cheers,

Ganesh

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You need a cross table load to get the dates and product names as fields:

Temp:

CrossTable(Date, Amount, 1)

LOAD * FROM ....xls;

Final:

LOAD Product,

  Date(Date#(Date, 'dd-mmm')) As Date,  // gets date as a numeric QV date

  Amount

Resident Temp;

DROP Table Temp;

Then create a straight table with Date and Product as dimensions and Sum(Amount) as the expression

HTH

Jonathan

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

Thanks for ever one. giving solution.

Thanks

sekhar

buzzy996
Master II
Master II

pfa,hopes this also helps just created using cross table.