Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
RYNHARD1
New Member

Excel formula to Power BI Calculated Column

Good day everyone, I am struggling with translating the following formula to PowerBI.
=IF(OR(G6="L",G6="L - AFA"),0,
IF(OR(G6="CFI",G6="CFI - AFA"),
IF(SUM(SUMIFS(H:H,D:D,D6,G:G,{"NB";"NB - AFA"}))+H6>0,0,
IF(SUM(SUMIFS(H:H,D:D,D6,G:G,{"NB";"NB - AFA"}))+H6=0,

IF(OR(I6/F6*100<=IF(VALUE(LEFT(D6,3))=871,-30000,-40000),INT(J6/F6*100)<0),-1,0),-1)),
IF(H6<=0,0,
IF(OR(G6="NB - AFA",G6="NB"),IF(OR(I6/F6*100>=IF(VALUE(LEFT(D6,3))=871,30000,40000),INT(J6/F6*100)>0),1,0),
IF(OR(J6/F6*100>=3599.5,I6/F6*100>=IF(VALUE(LEFT(D6,3))=871,30000,40000)),1,0)))))
*IF(F6<100,IF(AND(LEFT(A6,4)="DFCR",F6=60),1,0.5),1)

PS: D6 in the formula is cell specific and needs to calculate accordingly in the Calculated Column

1 REPLY 1
Fowmy
Super User
Super User

@RYNHARD1 
Upload your data in power BI and share the PBIX file expalining the desired results
Use Google Drive to save your file and share the link here.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.