Friday, March 30, 2012
How to format measure descriptions
report based on a cube, you are presented with a detail
column for your measure and a column to the left of that
for the description of the measure. My report has several
rows of measures that present (for example) both units
and dollars. I want to be able to leave a blank line
between the units section and the dollars section. I also
want to be able to place a heading for each section. The
preference is that the heading be off to the left rather
than above -- but i am not able to add a second
description column. So I placed text in the description
column to simulate the desired formatting.
For example:
Units Prod1
Prod2
Prod3
Total
Sales Prod1
Prod2
Prod3
Total
This approach looks fine in the designer. But when i
publish the report and view it in IE, all extra spaces
are gone (both horizontally and vertically) so the
descriptions look as below:
Units Prod1
Prod2
Prod3
Total
Sales Prod1
Prod2
Prod3
Total
Any suggestions on how to get a better presentation of
the descriptions?Try Using Padding ?
"Daniel Edwards" <DanielEdwards@.discussions.microsoft.com> wrote in message
news:A5663DB5-D5DD-4132-AEA5-A9D19EDFE713@.microsoft.com...
> When using a matrix in Reporting Services to design a
> report based on a cube, you are presented with a detail
> column for your measure and a column to the left of that
> for the description of the measure. My report has several
> rows of measures that present (for example) both units
> and dollars. I want to be able to leave a blank line
> between the units section and the dollars section. I also
> want to be able to place a heading for each section. The
> preference is that the heading be off to the left rather
> than above -- but i am not able to add a second
> description column. So I placed text in the description
> column to simulate the desired formatting.
> For example:
> Units Prod1
> Prod2
> Prod3
> Total
> Sales Prod1
> Prod2
> Prod3
> Total
> This approach looks fine in the designer. But when i
> publish the report and view it in IE, all extra spaces
> are gone (both horizontally and vertically) so the
> descriptions look as below:
> Units Prod1
> Prod2
> Prod3
> Total
> Sales Prod1
> Prod2
> Prod3
> Total
> Any suggestions on how to get a better presentation of
> the descriptions?
>
Friday, March 9, 2012
How to find out if a subreport has data
I have a toggle on the report that I want to show/hide based on whether
or not the subreport has data.
Does anyone know how to do this?
Thanks in advance!
ShaneImplement the following way:
Say u have subreport 'Report1' and main report 'Report'
1) Apply visibility condition in the subreport 'Report1'
2) Now use that subreport 'Report1' in ur main report 'Report'.
Regards,
SaraS|||Thanks Sara. I'm wondering how to set the visibility condition.|||shane.eckel@.seattlesoftware.com wrote:
> Thanks Sara. I'm wondering how to set the visibility condition.
I haven't tested it myself, but you should be able to set the NoRows
property in the cell (i.e. textboxN) holding the subreport to "NODATA"
and then set the visibility expression to
=(textboxN.Value="NODATA")|||Thanks for your reply, however, the problem I'm having is with
indicating whether or not the subreport has data. The visibility issue
is secondary. Does anyone have a specific way of determining if a
subreport has data?
Thank you in advance.|||SleepLab did answer your question from the way you initially asked it and
also mentioned how to tell if you have no data. The subreport is based on a
dataset, right? So set the NoRows property on the dataset the subreport is
tied to ... when the query is run it will trigger whatever you put in NoRows
to occur. Unless I am missing something I still think the NoRows property on
the subreport is your answer.
"shane.eckel@.seattlesoftware.com" wrote:
> Thanks for your reply, however, the problem I'm having is with
> indicating whether or not the subreport has data. The visibility issue
> is secondary. Does anyone have a specific way of determining if a
> subreport has data?
> Thank you in advance.
>
Friday, February 24, 2012
How to find duplicate rows in Flat File ?
In the FLAT FILE source, I have to find the duplicate rows based on the two fields say, "bill number" & "invoice date".
The rows within flat file has like "bill number" which is duplicated on the same "invoice date".
If duplicate rows found then move the duplicate rows into another Flat File.
If not found then move the rows into Sql Server Table.
Pls provide the solution. Thank you
Since, for duplicate records, the bill numbers would be the same as would the invoice dates, how do you chose which record to keep and which to move on to another flat file? Does it matter?|||Example
BillNo, invoicedate, billamt, shiptype,
920203348313,08/12/07,1000,A
920203348313,08/12/07,1000,A
792309510000, 08/13/07,867,C
First two rows to be moved into another FLAT FILE
Third row to be moved into SQL SERVER table.
Thanks
|||
You could use a Rank() function to identify duplicates and to select which rows are going to be discarded/kept (you could load the files to an staging table).
If you were using a relational DB as source you do it like this. Jamie has also a Rank transformation that you may want to check. You could also write your own solution in a script component.,
|||
is there any direct solution by using any component within SSIS ?
|||
Antony Kumar wrote:
is there any direct solution by using any component within SSIS ?
A script component could do this pretty easily, provided you have the data sorted by the two keys and it would also likely require a two-pass approach. The first pass to number the rows, the second to move the rows where count (rownumber) > 1
|||
Antony Kumar wrote:
Example
BillNo, invoicedate, billamt, shiptype,
920203348313,08/12/07,1000,A
920203348313,08/12/07,1000,A
792309510000, 08/13/07,867,C
First two rows to be moved into another FLAT FILE
Third row to be moved into SQL SERVER table.
Thanks
Based on this example you could use an agregation transformation to count the rows group by BillNo; that should provide an extra column with the count. Then use a conditional split to filter out rows where count>1...
|||
Rafael Salas wrote:
Based on this example you could use an agregation transformation to count the rows group by BillNo; that should provide an extra column with the count. Then use a conditional split to filter out rows where count>1...
Oh sure! Go the easy route! Not sure what I was thinking earlier.
Sunday, February 19, 2012
how to filter output based on user's AD group membership?
parameters they can select, what columns they can see
But I can't figure out the best way of doing this and the documentation on
AD seems to assume that the user already understands AD.
From what I can tell I have two options
1) use sql with the openquery syntax - don't think this is going to be an
option due to the hassle here of setting up linked servers (bureaucracy in
the extreme)
2)use system.directoryservices with some code built into to the report - i
don't really understand how to do this, none of the code samples i have seen
seem to do what I want e.g. pass in username from global report parameters
along with the groupname i want to check against, and return whether they are
in that particular group as true/false
help greatly appreciated!
do you know a better way of doing this? code samples? etc
thanks!AD queries in SQL Server using the ADSI can be a problem... I am told it will
only search the first 1000 rows returned by the AD..
if you are using SQL 2005... Take a look at the sys.login_token
It shows all of the AD groups the user is a member of.
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"adolf garlic" wrote:
> I want to filter reports based on a users active directory security i.e. what
> parameters they can select, what columns they can see
> But I can't figure out the best way of doing this and the documentation on
> AD seems to assume that the user already understands AD.
> From what I can tell I have two options
> 1) use sql with the openquery syntax - don't think this is going to be an
> option due to the hassle here of setting up linked servers (bureaucracy in
> the extreme)
> 2)use system.directoryservices with some code built into to the report - i
> don't really understand how to do this, none of the code samples i have seen
> seem to do what I want e.g. pass in username from global report parameters
> along with the groupname i want to check against, and return whether they are
> in that particular group as true/false
> help greatly appreciated!
> do you know a better way of doing this? code samples? etc
> thanks!
How To filter data set based on value from another
Data Set #1
User ID First Last ........
crace Chares Race
mmiller Mike Miller
Data Set #2
User ID Role
crace administrator
crace guest
mmiller guest
Desired Report Result
Page 1
crace Charles Race
Roles administrator
guest
Page 2
mmiller Mike Miller
Roles guest
Thanks
CharlesHi,
cycle through data set 1 with a for loop and save the id. then cylcle with a second loop through dataset 2 and look for the user ID. Then you have a variable which contains the row where this user is in the first dataset and a diferent one, which contains the rownumber in which the user is in dataset 2.|||Even though this would work it wouldn't be very efficient as there are over 20,000 rows to traverse through. Would there be a more efficient approach?
Thanks
Charles|||When importing the data into the new dataset, store the key in a array (or hashtable) and before inserting the next record - check the hashtable if it already contains the key, if so skip it.....|||Hi,
can you not use a sql statement with a where clause when retriving your data from the database?! so you would have one huge dataset containing the data in the way you want to have it.