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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
selvarajd1
Employee
Employee

Replace BLANK with value from other row based on condition

I would like to create a Custom Column formula that copies Product value( Azure Data Manager for Agriculture) within same Product column blank values . If PRODUCT is BLANK, then I want to find non-blank value for the same record Id 

Here's a graphical representation that I am looking for.

 

selvarajd1_0-1694467750408.png

 

4 REPLIES 4
SamInogic
Super User
Super User

Hi @selvarajd1 ,

You can also try to create a custom column with below DAX expression,

Custom Column =
if(isblank( [Recordld] ) ,MAXX(FILTER('Sample', [Recordld] = EARLIER([Recordld]) && ISBLANK([Recordld])), [Recordld] ), [Recordld] )

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Thank you, will check and revert with update..

ValtteriN
Super User
Super User

Hi,

Here is one way to do this:

data:

ValtteriN_0-1694498332921.png


Dax:

Column =
var _id = 'Table (4)'[id]
var _nb = CALCULATE(MAX('Table (4)'[product]),ALL('Table (4)'),'Table (4)'[id]=_id) return
IF('Table (4)'[product]="",_nb,'Table (4)'[product])

End result:
ValtteriN_1-1694498659698.png

 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





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

Proud to be a Super User!




Thank you, will check and revert..

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors