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: 
schuster-franz_
Contributor III
Contributor III

dynamische Dimension

Hallo,

in einer Pivottabelle habe ich eine dynamische Dimension erstellt, die ich erweitern möchte:

dynamische Dimension:

if( IST_Wert = 1, 'IST'

, if( SOLL_Wert = 1, 'SOLL'))

damit erzeuge ich zwei Spalten, einmal mit dem IST-Wert und einmal mit dem SOLL-Wert.

Die Formel dazu lautet:

if( IST_Wert = 1, sum({< Zeilennr = {1100} >} Betrag)

, if( SOLL_Wert = 1,sum({< Zeilennr = {1100} >} Plan_Betrag)))

Das Ergebnis sieht dann so aus:

ISTSOLL
Formel10001500

Jetzt möchte ich noch eine weitere Spalte mit der Abweichung von IST zu SOLL in die dynamische Dimension einfügen, aber wie stelle ich das an?

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hallo,


Können Sie die Beispieldaten oder die Anwendung freigeben?


Grüße,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Frank_Hartmann
Master II
Master II

Ich vermute, dass das mit einem Pivottable nicht funktionieren wird.

Probiers doch mal mit einem Straighttable:

Dimension:

'Formel'

Expression1:

sum({< Zeilennr = {1100},IST_Wert = {1} >} Betrag)

Expression2:

sum({< Zeilennr = {1100},SOLL_Wert = {1} >} Plan_Betrag)

Expression3:

Column(1)-Column(2)


Hoffe das hilft dir 🙂

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

perfekt,


Was du getan hast, ist richtig.


Grüße,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!