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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem using concat()

Hello,

I'm trying to get an overview of how our orders are looking when they are being delivered from more than one warehouse.

I have created a bar chart that uses the following settings:

Dimension= Concat(DISTINCT Warehouse_Id,';')

Expression= Count (DISTINCT Order_Number)

My problem is that when I look at my chart I only get one bar that contain all variants of my dimension.

How can I make QV understand that I want one bar per combination of warehouse_id?

The result should look someting like this:
Warehouse 1 and 2 = 15%
Warehouse 1 and 3 = 25%
Warehouse 2 and 3 = 60%

br
Martin

1 Reply
fernandotoledo
Partner - Specialist
Partner - Specialist

You should try to solve this in the script as loading the data.

You can create a dimension concatenating all warehouses that delivers the same order in the same row. This will keep all possible combinations of warehouse and can be used in any chart.

Something like:

LOAD DISTINCT
ORDER_ID,
IF(
ORDER_ID=PREVIOUS(ORDER_ID),
PEEK("WAREHOUSE_GROUP_ID") & ' and ' & WHAREHOUSE_NAME,
WHAREHOUSE_NAME
) as WAREHOUSE_GROUP
RESIDENT ORDERS
ORDER BY ORDER_ID
;


Then try to find a way to filter the last row for each Order.

Best regards,

Fernando