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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors