Skip to main content

Notifications

Dynamics 365 general forum

How to make "if conditions" in Dynamics work like Excel "if conditions" : Calculated fields

Posted on by Microsoft Employee

I have been trying to achieve the following in a if condition in a calulated field , Could you please help me the achieve this kind of values which are dynamic.

 

By default the if condition only allows a "static value" or a "field value " , is there any way i can have a computed "field value" as follows , this is the formula based on excel , i need to achieve the same in Dynamics calculated fields

=IF( 
    BX$4 <= $AI5, 
    IF( 
        OR( 
            BX$4 = $AH5 + 1, 
            BX$4 = $AH5 * 2 + 1, 
            BX$4 = $AH5 * 3 + 1, 
            BX$4 = $AH5 * 4 + 1, 
            BX$4 = $AH5 * 5 + 1, 
            BX$4 = $AH5 * 6 + 1, 
            BX$4 = $AH5 * 7 + 1, 
            BX$4 = $AH5 * 8 + 1, 
            BX$4 = $AH5 * 9 + 1, 
            BX$4 = $AH5 * 10 + 1, 
            BX$4 = $AH5 * 11 + 1, 
            BX$4 = $AH5 * 12 + 1, 
            BX$4 = $AH5 * 13 + 1, 
            BX$4 = $AH5 * 14 + 1, 
            BX$4 = $AH5 * 15 + 1, 
            BX$4 = $AH5 * 16 + 1, 
            BX$4 = $AH5 * 17 + 1, 
            BX$4 = $AH5 * 18 + 1, 
            BX$4 = $AH5 * 19 + 1, 
            BX$4 = $AH5 * 20 + 1 
        ), 
        BW5 * ( 1 + $AE5 ), 
        BW5 
    ), 
    0 
) 


Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans