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

Referencing Cells in a Power Query If Statement

Hi, Is the formula below possible in Power Query? Its giving me an error because it can't reference the cell below labeled "AB2". I assume its because I can't have a dynamic formula where in the following row it reads AB3. Is this even possible in power query?

 

bencruz7_0-1697474844813.png

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @Anonymous 

It is possible.
Better you can try for conditional column inplace of custom column

PijushRoy_0-1697483037402.png

I am sharing one sample

PijushRoy_1-1697483110952.png


If solve your requirement, please mark as Solved




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

1 REPLY 1
PijushRoy
Super User
Super User

Hi @Anonymous 

It is possible.
Better you can try for conditional column inplace of custom column

PijushRoy_0-1697483037402.png

I am sharing one sample

PijushRoy_1-1697483110952.png


If solve your requirement, please mark as Solved




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





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.

Top Solution Authors