Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need Help with EXPRESSION Sum of Product with set analysis

I HAVE TO DO SUM OF PRODUCT...

SUM(only({<FLAG={'BP_Oretreatment'}>}Day_Value) * ONLY({<FLAG={'BP_ZNFEEDGRADE'}>}Day_Value)).

Error is showing as sum can not be used with only function .. Please help

7 Replies
simsondevadoss
Partner - Creator III
Partner - Creator III

try this : SUM({<FLAG={'BP_Oretreatment'}>}Day_Value) * ONLY({<FLAG={'BP_ZNFEEDGRADE'}>}Day_Value)


or store SUM({<FLAG={'BP_Oretreatment'}>}Day_Value) and ONLY({<FLAG={'BP_ZNFEEDGRADE'}>}Day_Value) in a separate variable and use it in the expression

Not applicable
Author

Its not helping the cause... any more suggestion

Not applicable
Author

kindly post your requirement in detail with sample application if possible

Not applicable
Author

Hi,

Try this.

sum({<FLAG={'BP_Oretreatment','BP_ZNFEEDGRADE'}>}Day_Value)

                               OR

sum(aggr({<FLAG={'BP_Oretreatment','BP_ZNFEEDGRADE'}>}Day_Value))

mukesh24
Partner - Creator III
Partner - Creator III

Hi Navneet,

Can u please explaint u r req. with sample example.

Not applicable
Author

PLEASE FIND THE ATTATCHMENT

PrashantSangle

Hi

Try without Only.

Try below

SUM({<FLAG={'BP_Oretreatment'}>}Day_Value) * Sum({<FLAG={'BP_ZNFEEDGRADE'}>}Day_Value)



Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂