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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to Use "IF" and "E" Function in Power Query

I would like some help on how to use the excel “IF” and “E” functions in the power query. You would need to use the two functions together. Thanks

4 REPLIES 4
AlexisOlson
Super User
Super User

What's the Excel expression you are trying to replicate?

Anonymous
Not applicable

 

The expression would be this

"=SE([@[Weight-Hub Factor]]<=5;"0.00 to 5";
IF(E([@[Weight-Hub Factor]]>5;[@[Weight-Hub Factor]]<=10);"5.01 to 10";
IF(E([@[Weight-Hub Factor]]>10;[@[Weight-Hub Factor]]<=15);"10.01 to 15";
IF(E([@[Weight-Hub Factor]]>15;[@[Weight-Hub Factor]]<=20);"15.01 to 20";
IF(E([@[Weight-Hub Factor]]>20;[@[Weight-Hub Factor]]<=25);"20.01 to 25";
IF(E([@[Weight-Hub Factor]]>25;[@[Weight-Hub Factor]]<=30);"25.01 to 30";
IF(E([@[Weight-Hub Factor]]>30;[@[Weight-Hub Factor]]<=35);"30.01 to 35";
IF(E([@[Weight-Hub Factor]]>35;[@[Weight-Hub Factor]]<=40);"35.01 to 40";
IF(E([@[Weight-Hub Factor]]>40;[@[Weight-Hub Factor]]<=45);"40.01 to 45";"

Hi @Anonymous ,

 

In power query,you could use "if" statement,such as if ..then..else or if ..then if ..else..else,check below reference:

https://gorilla.bi/power-query/if-function-in-power-query/

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

I've never seen functions SE and E in Excel and they aren't in the documented list of Excel functions. What do they mean?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.