Share via

IF Excel Function Turned Into DAX

123456789 1 Reputation point
2020-10-28T02:08:40.96+00:00

Hello,

Pretty new to Power BI, especially to DAX. Looking to get help writing the following IF function I made in Excel that I would like to recreate in my dashboards;

=IF(B2=<SUM(C2:E2),"Okay",IF(B2>SUM(C2:E2),"Constrained"))
A2 = Item code
B2 = the quantity of an item on a sales order, lets say the cell shows a 5
C2 = current inventory, lets say 4
D2 = purchased items in transit, lets say 3
E2 = Manufactured items in transit, lets say 0

so in the cell the formula is written it should return an "Okay" since we have 7 about to be in stock and need 5 for the sales order. How would I write this out in DAX?

Thank you!

Community Center | Not monitored

1 answer

Sort by: Most helpful
  1. Leon Laude 86,201 Reputation points
    2020-10-29T11:48:42.61+00:00

    Hi @123456789 ,

    Power BI is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask the experts in the dedicated Power BI forum over here:
    https://community.powerbi.com/t5/Forums/ct-p/PBI_Comm_Forums

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.