Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I have a measure that should count acts and payments, and if there are more acts than payments, then it should display a value, otherwise it is empty.
But when calculating this measure for a hierarchy, I see BLANK at the top level, although the children of the hierarchy have values.
How can I get at the top level of the hierarchy the sum of the values of the lower levels of the hierarchy?
Screenshoot - http://joxi.ru/L21zZndsR485ZA
Measure =
var acts_91121 = CALCULATE(sum('test'[value]),'test'[type] = "act")
var bp_91121 = CALCULATE(sum('test'[value]),'test'[type] = "payment")
var itog_91121 = acts_91121-bp_91121
return itog_91121
Measure =
var acts_91121 = CALCULATE(sum('test'[value]),'test'[type] = "act")
var bp_91121 = CALCULATE(sum('test'[value]),'test'[type] = "payment")
var itog_91121 = if(acts_91121-bp_91121<0,blank(),acts_91121-bp_91121)
return itog_91121
Solved! Go to Solution.
Hi @mihail_p
you do
SUMX (
summary table of your hierarchy,
[measure]
)
this will desply the aggregated values over all levels including the total.
Hi @mihail_p
you do
SUMX (
summary table of your hierarchy,
[measure]
)
this will desply the aggregated values over all levels including the total.
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |