Friday, March 30, 2012
RowNumber Problem in Grouped Data
from SQL server). While using the RowNumber("GrouName") I am getting strange
results. For example If that grouping was made out of 3 individual lines from
data set, then I am getting Row number as 3.
What I want is irrespective of the no of lines involved in such aggregation,
I want the rownumbers based on the final aggregated line and not based on the
no of detailed lines involved in such groupings.
Any help will be appreciated!
Thanks,
VisualcppI get this also. With my groupings, RowNumber behaves identically to
CountRows. I have something that looks like:
Group1
Group 2
Details
Group2 and details are initially hidden so I want to alternate row
colors for the group1 header and footer rows. RowNumber("Group1")
returns the number of rows in that group, not the number of the
group. It's identical to CountRows("Group1").
If you figure out the solution to this, please let me know!
On Feb 15, 1:51 am, Visualcpp <Visual...@.discussions.microsoft.com>
wrote:
> I have multiple (multilevel) groupings in my RDL (based on line level data
> from SQL server). While using theRowNumber("GrouName") I am getting strange
> results. For example If that grouping was made out of 3 individual lines from
> data set, then I am getting Row number as 3.
> What I want is irrespective of the no of lines involved in such aggregation,
> I want the rownumbers based on the final aggregated line and not based on the
> no of detailed lines involved in such groupings.
> Any help will be appreciated!
> Thanks,
> Visualcpp|||I don't know if this is the proper way to get around this, but the
following works correctly. If you happened to have blank or null
group headings this method would not work.
=IIF(RunningValue(Fields!name.Value,CountDistinct,nothing) mod 2,
"Transparent", "LightYellow")
On Mar 11, 10:35 am, brandon.rich...@.gmail.com wrote:
> I get this also. With my groupings,RowNumberbehaves identically to
> CountRows. I have something that looks like:
> Group1
> Group 2
> Details
> Group2 and details are initially hidden so I want to alternate row
> colors for the group1 header and footer rows. RowNumber("Group1")
> returns the number of rows in that group, not the number of the
> group. It's identical to CountRows("Group1").
> If you figure out the solution to this, please let me know!
> On Feb 15, 1:51 am, Visualcpp <Visual...@.discussions.microsoft.com>
> wrote:
>
> > I have multiple (multilevel) groupings in my RDL (based on line level data
> > from SQL server). While using theRowNumber("GrouName") I am getting strange
> > results. For example If that grouping was made out of 3 individual lines from
> > data set, then I am getting Row number as 3.
> > What I want is irrespective of the no of lines involved in such aggregation,
> > I want the rownumbers based on the final aggregated line and not based on the
> > no of detailed lines involved in such groupings.
> > Any help will be appreciated!
> > Thanks,
> > Visualcpp- Hide quoted text -
> - Show quoted text -
Monday, March 12, 2012
Row Heigh
coloured the background of the group footer row. In the VS designer I have
reduced the row height to 0.03125in.
When previewing my report in VS the report generates as expected. When
running the report in the report manager the group footer row height reverts
back to its original height.
Is this a known bug, and is there a work around?Is the browser caching the report? Try Ctrl+F5 in IE.
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"SAcanuck" <SAcanuck@.discussions.microsoft.com> wrote in message
news:D931FCF4-AAF2-4C35-B5B2-2DE88697A502@.microsoft.com...
> In my report I am using a group footer as a "line" to separate groups. I
> have
> coloured the background of the group footer row. In the VS designer I have
> reduced the row height to 0.03125in.
> When previewing my report in VS the report generates as expected. When
> running the report in the report manager the group footer row height
> reverts
> back to its original height.
> Is this a known bug, and is there a work around?|||No the browser is not caching any reports.
"Jeff A. Stucker" wrote:
> Is the browser caching the report? Try Ctrl+F5 in IE.
> --
> Cheers,
> '(' Jeff A. Stucker
> \
> Business Intelligence
> www.criadvantage.com
> ---
> "SAcanuck" <SAcanuck@.discussions.microsoft.com> wrote in message
> news:D931FCF4-AAF2-4C35-B5B2-2DE88697A502@.microsoft.com...
> > In my report I am using a group footer as a "line" to separate groups. I
> > have
> > coloured the background of the group footer row. In the VS designer I have
> > reduced the row height to 0.03125in.
> >
> > When previewing my report in VS the report generates as expected. When
> > running the report in the report manager the group footer row height
> > reverts
> > back to its original height.
> >
> > Is this a known bug, and is there a work around?
>
>
Friday, March 9, 2012
row by row reading of textfile
hi,
how do i do in ssis if i want to read the textfile row by row? i need to do this since every line in my flat file has different conditions to fulfill depending on the content of the row.
cherriesh
Have you tried using the flat file source? Perhaps treat the file as delimited, but just have one column, and the row being delimited by a carriage return.
You could also write your own source by using the sript component. Here you can just use the power of VB.Net to open the file, and then read each line as you requie. Pass out data as and when you want. SQL Server Books Online includes topic on how to "Creating a Source with the Script Component", complete with an example titled "Flat File Source Example".
|||Take a look at this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1568089&SiteID=1
I posted an example on my blog : http://agilebi.com/cs/blogs/jwelch/archive/2007/05/08/handling-flat-files-with-varying-numbers-of-columns.aspx
Jamie has also pointed out that this can be done without the script task, by using the derived column transform and a conditional split.