Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8714

hiding sections

$
0
0

Hi All,

 

I have a main report having 2 sub report in rh1 and 2.

 

I need to show rh1 when StretchMode.prop_value =CAT  and rh2 when StretchMode.prop_value BRAND.

 

Now in my 2 sub reports I applied filter like below. Need to suppress the categories when all sales figures are 0.

please refer this thread suppressing data

 

 

1) Created a formula called (@zeroes) with this code:

 

If {numeric field1} = 0 AND {numeric field2} = 0 AND {numeric field3} = 0 AND {numeric field4} = 0 then 0 else 1

 

2) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:

 

Sum({@Zeroes}, {Category}) > 0




But now in my main report I did suppress blank section and also suppress blank sub report but when I run the report still my sub report showing all the sections why because I am suppressing the data.

But I don't want show those empty reports.

 

I did like this for RH2 but still not working.In my sub report I created a record number and passing main report then in RH2 I wrote below formula to show the section.

 

shared numbervar d;

if   {StretchMode.prop_value} = "BRAND" or d <> 0 then false else true

 

Please suggest.




Untitled.png


Viewing all articles
Browse latest Browse all 8714

Trending Articles



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