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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

If conditional base on drop down list

In excel, I am able to create a conitional statment base on  other cell.

 

For example,

=IF($E$1="Statutory",AG2,AF2)

And cell E1 is either Statutory or not.

 

I wonder if Power BI has similar functionality.

 

Thank you for the help.

 

 

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You should probably refer to the LOOKUPVALUE function with IF statement, official document for your reference:

https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax 

https://docs.microsoft.com/en-us/dax/if-function-dax 

 

That would be helpful if you can disclose your requirement with detailed data and expected results, that I can draw it up for you. 

 

 

 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You should probably refer to the LOOKUPVALUE function with IF statement, official document for your reference:

https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax 

https://docs.microsoft.com/en-us/dax/if-function-dax 

 

That would be helpful if you can disclose your requirement with detailed data and expected results, that I can draw it up for you. 

 

 

 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

"If" is there but it is column-based, calculation happen at row level.  For across row calculation you need to use lookup, earlier etc.

 

https://docs.microsoft.com/en-us/dax/if-function-dax

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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