Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217197

Subtract values from same category but from different subcategories, show total on category level

$
0
0

Dear All,

 

I'm trying to subtract/compare two values from different subcategories in a kind of subtotal for that category. However, I don't want to use the standard subtotal of the matrix view, as it shows the calculations steps.

 

Maybe with a screenshot Smiley Happy :

 

Capture1.JPG

 

So I'm comparing the value of a fund (C+F Belgian Growth Cap), with its benchmark (BELM). The fund and the benchmark are being defined as different subcategories ("title") from one category ("fundname", here CFBG), so I'm able to filter them and make measures that totals them individually.

 

When I try to subtract the two (filtered) measures in a new measure (TestMeasure), it shows the subcalculation filtered and then makes a (sub)total on the bottom of the matrix. (logical Smiley Wink )

 

Two measures (it's testing, so table names are not very friendly) that are subtracted in TestMeasure:

QuoteFund = calculate(sum(KoersenTbl[Value]);filter('Table1 (3)';'Table1 (3)'[BenchFund]="Fund"))

QuoteBench = calculate(sum(KoersenTbl[Value]);filter('Table1 (3)';'Table1 (3)'[BenchFund]="Bench"))

 

TestMeasure = [QuoteFund]-[QuoteBench]

 

(there are some date calculations as well, but I'm leaving this behind here as the point is to always have the latest available, that works already)

 

What I'd like to have as a behaviour, is to have only the result of "TestMeasure" on the first row (fund) and I'd like to continue to see the individual values (NAVTodaybis) per row.

Or to have a third row with the difference/comparison only ?

 

Any ideas ?

 

thanks a lot !


Viewing all articles
Browse latest Browse all 217197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>