Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Calculating a percentage across a matrix group


Calculating a percentage across a matrix group

Author
Message
iain.cowden
iain.cowden
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 60
Dear All,

I am developing a report in Report Builder 3.0

Thus far I have a matrix which uses Service_Locality, Instance and ActiveStatus as row fields and User_Status as a column field, with UserKey as my count.

Now when the report is run, User_Status splits out as expected into 4 columns - Deleted, Active_HCP, Active_User, Dummy.

What I now want to do is add an indicator column which is based on the percentage of Deleted users for the Service_Locality Scope.

I have tried a few variations, but cannot figure out how to reference the columns / data generated when the report runs. Can anyone help me here? My MDX level is basic to say the least!

Iain
Mackers
Mackers
SSC-Enthusiastic
SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)

Group: General Forum Members
Points: 117 Visits: 499
Hi Iain,

Try this sort of thing - In my example I have created a memeber that would be your calulation (in this case % European clients) and then unioned that to the list of clients

with
member [Client].[Client Region].[% split] as
([Client].[Client Region].[Europe]/[Client].[Client Region].[All])


SELECT UNION({ [Client].[Client Region].[All].CHILDREN } ,{[Client].[Client Region].[% split]}) ON COLUMNS ,
NON EMPTY { [Product].[Product Level 1].[All].CHILDREN }
* { [Product].[Product Level 2].[All].CHILDREN }
ON ROWS
FROM [OLAP]
WHERE ( [Measures].[Revenue] )

It may not be 100% what you are after - but I can help if it isn't

Mack
iain.cowden
iain.cowden
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 60
Hi Mack,

I am unclear as to where you are working with this. i have been trying to work with the value expression for my indicator.

I am guessing that your solution is to create a calculated member within the query?

Iain
Mackers
Mackers
SSC-Enthusiastic
SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)

Group: General Forum Members
Points: 117 Visits: 499
Hi Iain,

"I am guessing that your solution is to create a calculated member within the query?" Yes that what I was doing?

What are you trying to get - is this a static report that you can write the MDX for or do you want to create a calculated measure in the cube so that the users can select that?

Mack
iain.cowden
iain.cowden
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 60
Hi Mack,

This is a static report.

I had been working on trying to create a value expression within the indicator itself, hence my initial confusion. It did occur to me that i could also try creating this as a KPI within the cube.

Iain
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search