Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Easy bi for measurement

Hello team 

 

Im using easy BI , im new , but i find some difficulty in writing measurement condition (IIF).

 

My code is 

[Measures].[ prévisionnel restant]

CASE
WHEN [Measures].[Montant engagé (TTC) created] > [Measures].[Montant prévisionnel (TTC) created] THEN 0
WHEN [Measures].[Montant du règlement (TTC) created] > [Measures].[Montant prévisionnel (TTC) created] THEN 0
ELSE [Measures].[Montant prévisionnel (TTC) created] - [Measures].[Montant engagé (TTC) created] - [Measures].[Montant du règlement (TTC) created]
END

 

But it takes only the third case althought if case one are right.

In case 3 fact 24 : (Montant prévisi )32000..... < 40000 ( montant engagé ) it's right but they dont take it in concideration

I like to get this result 14500 not 5500.

 

Please find below all details 

 

 

Image 3.png

 

regards

Karim

 

 

1 answer

0 votes
Fabian Lim Community Leader Nov 17, 2021

Hi @karim

You need to review your formula.  There could be conflicting statements.

Try something like this:

CASE
WHEN ([Measures].[Montant engagé (TTC) created] > [Measures].[Montant prévisionnel (TTC) created] OR [Measures].[Montant du règlement (TTC) created] > [Measures].[Montant prévisionnel (TTC) created])

THEN 0

ELSE [Measures].[Montant prévisionnel (TTC) created] - [Measures].[Montant engagé (TTC) created] - [Measures].[Montant du règlement (TTC) created]

END

 

Regards,

Fabian

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Partner Webinar Opportunities: January 2022

Hi everyone 👋, I really like the format of the webinar opportunities summary that @Jimmy Seddon posts monthly on the Welcome Centre group. It's a great place to go to check that you didn...

0 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you