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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Evaluating Expression in PivotTable

Hi,

I would like to re-produce the following table:


ActualBudget
EntityOmzetMarge
KostenEbit%
OmzetMargeKosten
Ebit%
Company A







Company B







The expressions for each column (Revenues, Direct kost, Gross profit and Ebit% x Actuals / Budget) are stored in Excel

The expression table looks something like that:

Rapportage idSectieKolom naamKolom labelkolom ExpressionKolom formaat
1ActualOmzetOmzetsum( {<
[Verdichting1]= {'Total Revenue from Services'},
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
[#Transact bedrag])
#.##0
1ActualMargeMargesum( {<
[Exec P&L Heading]= {'Gross Profit'},
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
[#Transact bedrag])
#.##0
1ActualKostenKosten$(=only({<Sectie = {'Actual'},[Kolom naam] = {'Marge'}>}[kolom Expression])) - $(=only({<Sectie = {'Actual'},[Kolom naam] = {'Resultaat'}>}[kolom Expression]))#.##0
1ActualResultaatResultaatsum( {<
[Exec P&L Heading] = {'Income before taxes'},
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
[#Transact bedrag])
#.##0
1ActualFTEFTEsum( {<
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
[# totaal FTE])
#.##0,0
1ActualEbit%Ebit%$(=only({<Sectie = {'Actual'},[Kolom naam] = {'Resultaat'}>}[kolom Expression])) / $(=only({<Sectie = {'Actual'},[Kolom naam] = {'Omzet'}>}[kolom Expression]))#.##0,0%
1BudgetOmzetOmzetsum( {<
[Verdichting1]= {'Total Revenue from Services'},
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
#Budget)
#.##0
1BudgetMargeMargesum( {<
[Exec P&L Heading]= {'Gross Profit'},
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
#Budget)
#.##0
1BudgetKostenKosten$(=only({<Sectie = {'Budget'},[Kolom naam] = {'Marge'}>}[kolom Expression])) - $(=only({<Sectie = {'Budget'},[Kolom naam] = {'Resultaat'}>}[kolom Expression]))#.##0
1BudgetResultaatResultaatsum( {<
[Exec P&L Heading] = {'Income before taxes'},
[F einddatum]={"=$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
#Budget)
#.##0
1BudgetFTEFTEsum( {<
[F einddatum]={"$(=$(=$(getMaxDate('P<->(P-1)'))))"}
>}
[# totaal FTE])
#.##0,0
1BudgetEbit%Ebit%$(=only({<Sectie = {'Budget'},[Kolom naam] = {'Resultaat'}>}[kolom Expression])) / $(=only({<Sectie = {'Budget'},[Kolom naam] = {'Omzet'}>}[kolom Expression]))#.##0,0%

Rendering the expression in the pivot chart shows the right expression in the right place

Knipsel.PNG

Pivot setup

Dimensions:

1.RPT_dim_hdr (The king field group, CNIT, ect...)

2.Rpt sectie (Actual, Budget)

3.Kolom naam (Omzet, Kosten, Marge, ect...)

Expression

[kolom Expression]

When i try to evaluate the expression,

$(=[kolom Expression]) I get nothing...

Can this actually be done?

Dror

1 Reply
pljsoftware
Creator III
Creator III

Hi Dror,

have you solve this question? I have the same problem, when I try to evaluate the expressione with $(=Only(Formula)) Qlikview write null value. If I write Only(Formula) I look the formula.

I have try to write expression $(=Formula) but this not work, it work only if I select a single value for Classificazione and Categorizzazione.

I tried to write the expression Count(Formula) to test how expression it have for single cell and I receive always 1.

I add my application files.

Thanks in advance for your help.

Regards

Luca Jonathan Panetta

PLJ Software