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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

internal error set analysis on dynamic pivot table

hi

I am trying to create a dynamic chart. I know how this works and I have done it before. But now I have the problem that I have set anlysis in my Expressions and it always says internal error.

for example:

expression: sum(#Menge) - sum({$<LfdNr = {$(=min(LfdNr))}>}#Menge)

msg from macro: sum(#Menge) - sum({$<LfdNr = {(internal error)}>}#Menge)

can someone please help me.

regards,

MT

1 Solution

Accepted Solutions
Not applicable
Author

I solved the problem...I enable and disable the formular in the macro now!! The set analysis works fine now.

View solution in original post

11 Replies
Sokkorn
Master
Master

Hi MT,

Let try this =sum(#Menge) - sum({$<LfdNr = {"=$(=min(LfdNr))"}>} [#Menge])

Do let me know.

Regards,

Sokkorn

Not applicable
Author

try with ""

sum(#Menge) - sum({$<LfdNr = {"$(=min(LfdNr))"}>}#Menge)

Not applicable
Author

I have already tried it.

now it looks like this:

msg from macro: sum(#Menge) - sum({$<LfdNr = {''}>}#Menge)

Sokkorn
Master
Master

Hi MT,

Can you share your app? It can be easy to find the root cause.

Regards,

Sokkorn

Not applicable
Author

this is my table FormelName is shown in a listbox where you can choose what expression will be shown in the pivot table.

Formeln:

LOAD * Inline [

    FormelName, Formel

    Umsatz Stk, sum(#Menge) - sum({$<LfdNr = {$(=min(LfdNr))}>}#Menge)

    1. Bestand, sum({$<#Date = {'$(=min(#Date))'}>}#Bestand)

    Endbestand, sum({$<#Date = {'$(=max(#Date))'}>}#Bestand)

    LUG,  ((sum(#Menge) - sum({$<LfdNr = {$(=min(LfdNr))}>}#Menge))/((sum({$<#Date = {'$(=min(#Date))'}>}#Bestand) + sum({$<#Date = {'$(=max(#Date))'}>}#Bestand))/2))*(52/(max(LfdNr) - min(LfdNr)))

];

do you want to see the macro?

Sokkorn
Master
Master

Hi MT,

Load all your formula like this;

Formeln:

LOAD * Inline [

    FormelName, Formel

    Umsatz Stk, sum(#Menge) - sum({$<LfdNr = {"=$(=min(LfdNr))"}>} [#Menge])

    ];

Your expression should be =$(Formel)

Did you try this yet?

Regards,

Sokkorn

Not applicable
Author

sum(#Menge) - sum({$<LfdNr = {=(=min(LfdNr))}>}#Menge) this seems to work and

sum(#Menge) - sum({$<LfdNr = {(=min(LfdNr))}>}#Menge) that too. but now i have the problem that my chart is not beeing built

Sokkorn
Master
Master

Hi MT,

What dimension and expression you used? It would be great, if you can share your app.

Regards,

Sokkorn

Not applicable
Author

i think it is too big to share. if i use this expression directly in the chart it works fine but if im trying it dynamicly there are problems