Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Shreya_11
Contributor
Contributor

I have months in column and data is on part number level, I want to create a stacked bar chart and for that I have to plot each month against part num

Please suggest how can I dot it.

Change the data set from :

Part Name   Dec Plan    Dec Actual   Jan Plan   Jan Actual

X                        True               False              False           False

To this:

Part Name    Month   Status

X                        Dec Plan    True

X                         Dec Actual False

X                       Jan Plan     True

X                       Jan Actual  False

Labels (1)
2 Solutions

Accepted Solutions
Steven35
Partner - Contributor III
Partner - Contributor III

Hey,

You must use the "Crosstable" function : https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/...

 

Data:
CrossTable(Month, Status, 1)
LOAD * Inline [
Part Name, Dec Plan, Dec Actual, Jan Plan, Jan Actual
X, True, False, False, False
];

(Maybe I misunderstood because in your case a False is transformed into True)

 

Best regards,

 

Steven

View solution in original post

Shreya_11
Contributor
Contributor
Author

Thanks Steven, this worked for me.

View solution in original post

2 Replies
Steven35
Partner - Contributor III
Partner - Contributor III

Hey,

You must use the "Crosstable" function : https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/...

 

Data:
CrossTable(Month, Status, 1)
LOAD * Inline [
Part Name, Dec Plan, Dec Actual, Jan Plan, Jan Actual
X, True, False, False, False
];

(Maybe I misunderstood because in your case a False is transformed into True)

 

Best regards,

 

Steven

Shreya_11
Contributor
Contributor
Author

Thanks Steven, this worked for me.