Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Adding Measue Objects from different table blocks (Webi 4.1)

$
0
0

I've seen similar issues to this but haven't seen a resolution that works as of yet. Here's the scenario (using Webi 4.1):

 

I have 2 vertical table blocks each containing a measure. Each table also has an input control for one dimension. There is only one query and no sections or breaks or any other filtering and one report tab. I need to add the sum of the measure from table 1 (Measure1) to the sum of the measure from table 2 (Measure2) and add this to a blank cell or to a third table block. I'm simply just trying to add the 2 measure amounts from the 2 tables to show a grand total (But I can't combine the 2 tables as one for various reasons, and no separate queries).

 

I have tried the following formulas with no success:

 

=(Sum ([Measure1]) Where (BlockName([Measure1])="Block1"))+(Sum ([Measure2]) Where (BlockName([Measure2])="Block2")) 

 

The above formula produces an error message because of the measure being inside of the BlockName parentheses.

 

=(Sum ([Measure1]) Where (BlockName()="Block1"))+(Sum ([Measure2]) Where (BlockName()="Block2"))

 

=(Sum (If(IsNull([Measure1];0;[Measure1]))) Where (BlockName()="Block1"))+(Sum (If(IsNull([Measure2];0;[Measure2]))Where (BlockName()="Block2"))

 

The above formulas returned null values

 

=Sum([Measure1]) IN (BlockName([Measure1])="Block 1") + Sum([Measure2]) IN (BlockName([Measure2])="Block 2")

 

This produced an error message for invalid identifier.

 

I also adjusted and tried all of these formulas to just return the measure from just table 1 but had the same results.

I'm not sure why I got null values on the second formula as it seems logically correct.

 

Anybody have any ideas or workarounds?


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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