Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
MK_QSL
MVP
MVP

Result in TUBULAR form

Hi All,

Need your urgent help !!

We are sales based company keeping all parts in two different quality. i.e. Higher and Lower.

Sales on both quality parts are recorded seperately.

Example ....

I have one table showing all part details...

Part NO (Higher Quality)Part NO (Lower Quality)
A11HQA11LQ
A12HQA12LQ
A12HQA13LQ

Here A11 is the actual part number having two different qualities. i.e. A11HQ and A11LQ and so on.

Below Sales table showing their sales data. This table contains combined data for Higher and Lower Quality parts.

Part NOSales
A11HQ100
A12HQ104
A12HQ39
A11LQ60
A12LQ62
A13LQ64

Need Final Result like below....

Part NO (HQ)SalesPart NO (LQ)Sales
A11HQ100A11LQ60
A12HQ104A12LQ62
A12HQ39A13LQ64
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your AH12HQ part doesn't have one, but two AHxxLQ counterparts. It's impossible to match them without more information to determine which part and sales values are supposed to belong together.

If the second AH12HQ should actually be AH13HQ then you can try this:

SalesMap:

mapping LOAD * INLINE [

    Part NO, Sales

    A11HQ, 100

    A12HQ, 104

    A13HQ, 39

    A11LQ, 60

    A12LQ, 62

    A13LQ, 64

];

Result:

LOAD *,

applymap('SalesMap',"Part NO (Higher Quality)") as Sales_HQ,

applymap('SalesMap',"Part NO (Lower Quality)") as Sales_LQ

INLINE [

    Part NO (Higher Quality), Part NO (Lower Quality)

    A11HQ, A11LQ

    A12HQ, A12LQ

    A13HQ, A13LQ

];

The inline loads are just examples. You can replace them with load statements to retrieve the data from your data sources.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
MK_QSL
MVP
MVP
Author

Any reply?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your AH12HQ part doesn't have one, but two AHxxLQ counterparts. It's impossible to match them without more information to determine which part and sales values are supposed to belong together.

If the second AH12HQ should actually be AH13HQ then you can try this:

SalesMap:

mapping LOAD * INLINE [

    Part NO, Sales

    A11HQ, 100

    A12HQ, 104

    A13HQ, 39

    A11LQ, 60

    A12LQ, 62

    A13LQ, 64

];

Result:

LOAD *,

applymap('SalesMap',"Part NO (Higher Quality)") as Sales_HQ,

applymap('SalesMap',"Part NO (Lower Quality)") as Sales_LQ

INLINE [

    Part NO (Higher Quality), Part NO (Lower Quality)

    A11HQ, A11LQ

    A12HQ, A12LQ

    A13HQ, A13LQ

];

The inline loads are just examples. You can replace them with load statements to retrieve the data from your data sources.


talk is cheap, supply exceeds demand
MK_QSL
MVP
MVP
Author

Dear Gysbert,

You are absolutely right. There was typing mistke for A13HQ...

It's working..