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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
M_SBS_6
Helper V
Helper V

Power Query if

Hi, 

I have this DAX logic but i want to have this in the backend using Power Query. How or where do I write the following logic in Power Query please? 

 

If(isblank(house_val), "",

If(house_val >=0 && house_val < 50000, "0-49000,

If(house_val >=50000 && house_val < 100000, "50000-990000, 

If(house_val >=100000 && house_val < 500000, "100000-490000,

"500000+"))))

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@M_SBS_6 , Try in Power query

if [house_val] >= 0 and [house_val] < 50000 then "0-49000" else
if [house_val] >= 50000 and [house_val] < 100000 then "50000-99000" else
if [house_val] >= 100000 and [house_val] < 500000 then "100000-490000" else
"500000+"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@M_SBS_6 , Try in Power query

if [house_val] >= 0 and [house_val] < 50000 then "0-49000" else
if [house_val] >= 50000 and [house_val] < 100000 then "50000-99000" else
if [house_val] >= 100000 and [house_val] < 500000 then "100000-490000" else
"500000+"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.