Hi everyone
Here's the situation. I'm trying to get the following from a report on EazyBI.
I need an error rate %, meaning:
If I have 10 issues created, and 5 bugs, I have a 50% error rate.
The idea is pretty simple I basically need an MDX operation that reads
Issues created / bugs created
Simple enough, but I've been at it for a while and I cant crack it. This is my first encounter with this language and I don't fully understand it yet.
Closest I got was this
[Measures].[Issues created] / [Issue Type].[Bug]
However this one is not showing the desired %
I'd really appreciate the help :)
You are almost there, you need to divide the number of bugs (i.e. number of issues with issue type Bug) by the total of Issues created (taking into account all report selections for both).
For that you would divide a tuple of measure "Issues created" and I"ssue type" dimension member Bug by the measure "Issues created" (additionally, Case When construction is used to avoid dividing by zero when there are no created issues):
case when
[Measures].[Issues created]>0
then
(
[Measures].[Issues created],
[Issue Type].[Bug]
)
/
[Measures].[Issues created]
end
Select formatting Percentage (integer or decimal).
See report Bugs vs Issues created where the number of bugs is also calculated and used in further calculations!
Best,
Ilze, support@eazybi.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.