Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
davyqliks
Specialist
Specialist

Sum with Set analysis Issue

Hi,

Feeling very silly right now but cannot get the simplest thing to work i have done so much.

Please can anyone tell me why i can sum TotalQty and add the dimension MergeFibre and get the breakdown but when i add a value from the MergeFibre Field 'OtherMaterials' as set analysis in the sum i get a zero on that line?

Thanks. I am gong blind looking at this, it makes no sense.

 

davyqliks_0-1611661737566.png

 

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

I never get this situation but i found something long back : https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

7 Replies
Anil_Babu_Samineni

Try with double quotes and If that picks?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
davyqliks
Specialist
Specialist
Author

Thanks for the answer,

But just tried like

Sum({<MergeFibre = {'OtherMaterials'}>}TotalQty)

Sum({<[MergeFibre] = {'OtherMaterials'}>}TotalQty)

Sum({<[MergeFibre] = {"OtherMaterials"}>}TotalQty)

 

and still zero. Have you seen this before.... it just makes no sense!.

Thanks Anil for taking the time to suggest

Daniel

PradeepK
Creator II
Creator II

Seems like you might have extra space or other chr in dim Field-Value.

Try using len() and find soo..

Your expression is fine.. Only reason it's showing zero is because it cannot find value you are assigning in Set.

Anil_Babu_Samineni

I never get this situation but i found something long back : https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
davyqliks
Specialist
Specialist
Author

Oh my, thanks, never seen this but it worked with double quotes and wildcard:

Thank you so much... Awsome!

davyqliks_0-1611664316958.png

 

PradeepK
Creator II
Creator II

Just out of curiosity.. can you share your example with len(MergeFibre) .. 

Sum.PNG

Of-course the wildcard match will work.. but interesting thing is to understand why simple Modifier assignment was not..

davyqliks
Specialist
Specialist
Author

Like this?

davyqliks_0-1611666784844.png

Thanks again.

Daniel