Solved

MDX Percentage

Posted on 2013-11-12
2
216 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 r2 - Sum totals 2 29
SQL Insert parts by customer 12 43
Procedure syntax 5 42
Query for timesheet application 3 20
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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