Showing posts with label cells. Show all posts
Showing posts with label cells. Show all posts

Thursday, March 29, 2012

Export Excel : formatting has number with a formula in data report

Hello,
I have a problem when I export my report to Excel : the cells are not
considered as numbers.
In my report, I have a table witch fills data formatting with 1 decimal if
the data is not null. It's important because 0 and null must be considered as
different values.
An example of one cell :
=IIf(""&Fields!AFF_OBJ_ACT.Value = "", "",
Format(Fields!AFF_OBJ_ACT.Value/1000,"#,0.0"))
So, my report fills data like : empty, "0,0", or "x xxx,0", etc...
But, when I export my report to Excel, data are not considered as numbers
but strings with the green left top corner ! :-(
Any idea to help me ?
I understand that I need to format in my report data as number, but how to
differentiate 0 and null values... ?
Thanks.Sorry for my pathetic english...
You must understand "as" instead of "has" in the title
and "which" instead of "which"...
It should be more clearly...
"Drix78" wrote:
> Hello,
> I have a problem when I export my report to Excel : the cells are not
> considered as numbers.
> In my report, I have a table witch fills data formatting with 1 decimal if
> the data is not null. It's important because 0 and null must be considered as
> different values.
> An example of one cell :
> =IIf(""&Fields!AFF_OBJ_ACT.Value = "", "",
> Format(Fields!AFF_OBJ_ACT.Value/1000,"#,0.0"))
> So, my report fills data like : empty, "0,0", or "x xxx,0", etc...
> But, when I export my report to Excel, data are not considered as numbers
> but strings with the green left top corner ! :-(
>
> Any idea to help me ?
> I understand that I need to format in my report data as number, but how to
> differentiate 0 and null values... ?
> Thanks.|||I find the response of my question. If this information can help someone...
I just work on visibility of the cell.
The Hidden property of Visibility is set with the expression :
=IIf(""&Fields!AFF_OBJ_ACT.Value = "", True, False)
And the value of the cell :
=Fields!AFF_OBJ_ACT.Value/1000
with the customized format #,0.0
"Drix78" wrote:
> Sorry for my pathetic english...
> You must understand "as" instead of "has" in the title
> and "which" instead of "which"...
> It should be more clearly...
>
> "Drix78" wrote:
> > Hello,
> >
> > I have a problem when I export my report to Excel : the cells are not
> > considered as numbers.
> > In my report, I have a table witch fills data formatting with 1 decimal if
> > the data is not null. It's important because 0 and null must be considered as
> > different values.
> >
> > An example of one cell :
> > =IIf(""&Fields!AFF_OBJ_ACT.Value = "", "",
> > Format(Fields!AFF_OBJ_ACT.Value/1000,"#,0.0"))
> >
> > So, my report fills data like : empty, "0,0", or "x xxx,0", etc...
> > But, when I export my report to Excel, data are not considered as numbers
> > but strings with the green left top corner ! :-(
> >
> >
> > Any idea to help me ?
> > I understand that I need to format in my report data as number, but how to
> > differentiate 0 and null values... ?
> >
> > Thanks.sql

Wednesday, March 7, 2012

Expand/collapse matrix cells

Hi folks - I am trying to figure out how to set up the visibility
(expand/collapse) for my grouped matrix. So for example:
A
A1 10
A2 15
Total A 25
B
B1 35
B2 30
Total B 70
I want the user to be able to click and collapse to just see this:
A 25
B 70
Is this possible? I get the table, but am confused on how the matrix
handles grouping and visibility...
-RyanIn a matrix, you would have two row groupings. One for A, B, etc. and an
inner grouping for A1, A2, B1, etc.
1. For the inner row grouping, edit the grouping expression and go to the
Visibility tab of the grouping and sorting dialog. Set initial visibility to
"Hidden". Then, select "Visibility can be toggled by another reportitem" and
select the textbox of the outer row grouping heading.
2. For the inner row grouping, go to its heading textbox properties and set
the "initial appearance of the toggle" to Collapsed.
I also recommend to look at the sample reports that come with RS 2000 / RS
2005. Specifically, check the "Company Sales" sample report - it should
provide what you are looking for.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ryan M" <ryan.marples@.bluetidemanagement.com> wrote in message
news:1128026677.096400.11570@.f14g2000cwb.googlegroups.com...
> Hi folks - I am trying to figure out how to set up the visibility
> (expand/collapse) for my grouped matrix. So for example:
> A
> A1 10
> A2 15
> Total A 25
> B
> B1 35
> B2 30
> Total B 70
> I want the user to be able to click and collapse to just see this:
> A 25
> B 70
> Is this possible? I get the table, but am confused on how the matrix
> handles grouping and visibility...
> -Ryan
>|||Thanks for the pointer Robert. It turned out what I was doing wrong is
... applying the visibility properties to the textbox that represented
the group, not the group itself. Now I get it, thanks!
Now if I could just figure out how to get column heading for my row
groups...
-Ryan