Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MDX Percentage

Posted on 2013-11-12
2
Medium Priority
?
221 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 1460 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

Introduction Hopefully the following mnemonic and, ultimately, the acronym it represents is common place to all those reading: Please Excuse My Dear Aunt Sally (PEMDAS). Briefly, though, PEMDAS is used to signify the order of operations (http://en.…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

636 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