I have a crosstab report with totals across both axes. For some months, I have don’t have a measure in the intersection. I’d like the sum total to show “n/a” if ANY of the months has a null in the intersection. Like this…
Thanks for your suggestion, Mitra, but since the (measure) sum object is defined as numeric, it doesn’t allow me to replace w/ a string. I get the invalid data type error.
I tried this similar formula before and it erred out the same way:
=If(isNull;“N/A”;Sum())
Sum=IF(Count([Month] ForEach [Product])=Count([Month] in report);FormatNumber(Sum([Value]);"#");"N/A")
Edit:
The above formula is derived for cross tab structure. The blank/null cells in a cross tabs are virtual place holder which cannot be identified in BO using any formula.
The concept I used is to identify the total number of months in the report (assuming 1 year data) and comparing this count with the count of month each product has value. If both these numbers match then the summation will be shown at the footer else “N/A”.
Thanks, NewyorkBaasha. I tried your formula but I got an error at the ForEach operator: “Missing or bad calculation context FOR’ at position 31. (Error: WIS 10071).” I don’t think ForEach is allowed w/ the Count function; you can only use IncludeEmpty and Distinct|All.
When I took off the ForEach clause, my results shows “N/A” for all sum values, whether or not a null exists in the crosstab…rightfully, so, I guess. :?
I’m sorry. I’ve never imported a .wid file before. Would you mind showing me the steps? I’ve tried using Import/Migration/Publishing Wizards, but none seems to work w/ this file type.
If Rich Client is available, Download, save it to your desktop and open the report(.wid) via Rich Client.
The Zip file also contains the Screen shot .doc and the formula used. Crosstab.zip (20.0 KB)
Unfortunately, we’re still using XI R2. I don’t have 3.1 Rich Client. Is there any way you can show me a screen shot? I’m really sorry to trouble you, but I’m very anxious to see your solution.
Body of Cross-Tab =Count([Account])
Actual Count=Count(Count([Account]))
Count to check values for all month=Count([Product]) In Report
Expected Aggregation =If(Count(Count([Account]))=Count([Product]) In Report;Count(Count([Account]));"N/A")
Across Footer of cross tab
Body of Cross-Tab =Count([Account])
Actual Count=Count(Count([Account]))
Count to check values for all month=Count([Product]) In Report
Expected Aggregation =If(Count(Count([Account]))=Count([Month]) In Report;Count(Count([Account]));"N/A")
Mitra - That still didn’t work. NewyorkBaasha got the answer for me. Thanks anyway.
NewyorkBaasha - What brilliance! I only had to tweak it a bit to get it working my way (ie, switched “In Report” to “In Section” since my report has crosstabs sectioned by Regions and not all sections/regions have the same number of Products). I also figured out the Across Footer formula on my own but am glad you just validated it for me. Thanks again!
I’ve really learned a lot from this forum. Thank you all for taking the time to help us out!