March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have the following excel formula, that retains the following values;
Allocated
Pending Allocation
Partial Allocation
In Production
IF(OR([status]="Production",[status]="FactShipped"),"In Production",
IF(AND([[delivery_type]]="ship as available",[[order_qty]]=[[confirmed_qty]]),"Allocated",
IF(AND([[delivery_type]]="ship as available",[[confirmed_qty]]>0,[[confirmed_qty]]<[[order_qty]]),"Partial Allocation",
IF(AND([[delivery_type]]="full order consolidation",SUMIF([order_no],[[order_no]],[order_qty])=SUMIF([order_no],[[order_no]],[confirmed_qty])),"Allocated",
IF(AND([[delivery_type]]="full order consolidation",SUMIF([order_no],[[order_no]],[confirmed_qty])>0,SUMIF([order_no],[[order_no]],[confirmed_qty])<SUMIF([order_no],[[order_no]],[order_qty])),"Partial Allocation","Pending Allocation")))))
My efforts are to add a column in the power bi report that would capture the result based on the logic. The excel formula looks at multiple fields to retain the above-mentioned values.
Thanks and Regards,
Jajati Dev
Solved! Go to Solution.
Hi,
I was able to replicate the formula.
Hi,
I was able to replicate the formula.
Why don't you create two measures for the two SUMIFs using CALCULATE?
Then you could just include them in the column/measure you want to build.
Hi,
I am not calculating anything here. The SUMIF you see are part of the logic statement to retain a text at the end.
The logic is meant to retain the following;
Allocated
Pending Allocation
Partial Allocation
In Production
This logic in excel looks at every table row of the specified fields to provide a consolidated order status.
I'm guessing you want a calculated column?
Do you have different tables? SUMIF seems to indicate at least two? If yes, why not connect them using ORDER NUMBER? Then you can just apply an IF(RELATED...).
Hey @JajatiDev ,
Power BI is not Excel.
What do you want to do? Add column? Create a measure? What should the SUMIF represent? The sum on a row level? The sum for a specific column?
Please tell us how your table looks like and what you want as a result and then it's easier to help you.
Best regards
Denis
Hi,
Yes, I do acknowledge Power BI is different from Excel.
All that I am trying to achieve is to add a column in the report replicating the excel formula to retain the text value.
Thanks and Regards,
Jajati Dev
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |