Solved

MDX Percentage

Posted on 2013-11-12
2
217 Views
Last Modified: 2013-11-14
i've got the following percentage calculation, but need to format the % to 'example 4.5%'. Also account for null values.

([Measures].[Current Bed Count]/[Measures].[Current Available Bed Count])

Thanks.
0
Comment
Question by:aneilg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Tony303 earned 365 total points
ID: 39646678
How does this go for the formatting?

([Measures].[Current Bed Count]/[Measures].[Current Available Bed Count]),
format_string = '0.00%'

How does this go for Null in the numerator and formatting?

IIF(ISEMPTY([Measures].[Current Bed Count],0)/([Measures].[Current Available Bed Count]),FORMAT_STRING = "PERCENT"
0
 

Author Closing Comment

by:aneilg
ID: 39647253
perfect thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL trigger 5 49
MSSQL join different row from other table 14 80
Data conversion error in SSIS 3 54
What does "Between" mean? 6 40
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question