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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need a help on multiple if condition statment

Hi Experts,

 

I need a help, I want to lookup the value from another sheet and check the conditions and calculate the values.

 

the below formula i have it in excel, how to convert it into DAX or measure in Power BI.

 

=IF(AND($C1870="STUSCO",$E1870<>1022,$E1870<>"XA04"),IF($B1870="Products",0,IF($B1870="Crude",$L1870,IFERROR($L1870*VLOOKUP($F1870,'STUSCO %'!$F$2:$K$200,5,0),$L1870/2))),0)\

 

Please help me, it's urgent

1 REPLY 1
Anonymous
Not applicable

Seriously, how can we possibly help you in an issue like this? DAX is not a 1:1 translation with excel, it's a just a different model. How can we even think about finding a solution without an idea of the data structure?

IFERROR exists also in DAX
VLOOKUP can be generally achieved with a LOOKUPVALUE
IF has the same syntax in Excel and DAX

 

There is your help....

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.