EazyBI Measure to get % ?

Esteban Halabi June 22, 2022

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 :) 

1 answer

0 votes
Ilze Leite-Apine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2022

Hi @Esteban Halabi 

 

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events