Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Percentages in fact table ?

Status
Not open for further replies.

jcoira

Programmer
Sep 26, 2001
51
US
Hi,

I have a FACT table with measures like showed above

TotalQuantity Percentage ParcialQuantity
(calculated member)
100 1% 1
200 2% 4
100 3% 3
--------- -------- ----
400 6% (wrong!!) 8

I would like to know how to tell Analysis Services not to aggregate the percentage facts with the defualt SUM function(because it would lead to wrong calculations, as you can see on the table above). Instead I need to calculate the percentage with a formula like Percentage=(ParcialQuantity/TotalQuantity)*100.

I would really appreciate any clue.

Thank you.

// jcoira
 
Your probably better off doing this in a calculated measure. Bring ParcialQuantity and Total Quantity as seperate measures then create a Calculated measure defined as ParcialQuantity/TotalQuantity and give it a format string of Percentage.

-Paul
 
Thank you! It worked fine.

// jcoira
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top