Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
davyqliks
Specialist
Specialist

Help with Group by or Aggregation

Hi Experts,

I could really do with a little more of your assistance please.

Here is my load expression from the script:

Load *,
if(wildmatch (Part, 'Shell Fabric' ),Sum([Shell Weight]/100 * Percentage ))as [Weight Breakdown]

from
[lib://Qlik Sense E Drive/Live/QVD's/MasterData.QVD](QVD)
group by "Portal Order No."
;

I hope you can see i am trying to get the shell weight / 100 and multiplied by the number in the percentage field but grouped by the main field "Portal Order no".

There is no syntax error but when i try to load i get the following.

davyqliks_0-1629209326970.png

 

I hope someone can assist in grouping this sum by the field Portal Order No.

Thank you so much for your time in advance.

Daniel

Labels (1)
1 Reply
davyqliks
Specialist
Specialist
Author

 

Hi All.

 

alternatively,

Is there a way to fix this measure of a pie chart to only look at the field "Portal Order No"

 

Sum(

if(wildmatch (Part, 'Shell Fabric' ),([Shell Weight]/100) * Percentage,

if(wildmatch (Part, 'Lining' ),([Lining Weight]/100) * Percentage,

if(wildmatch (Part, 'Padding' ),([Padding Weight]/100) * Percentage,

if(not wildmatch (Part, 'Padding','Shell Fabric','Lining' ),([Other Weight]/100) * Percentage

 

)))))

 

Thanks again in advance for any assistance you might be able to offer.

Daniel