cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dineshkumar_vrv Regular Visitor
Regular Visitor

filling blanks with previous column text

I want to fill the blanks of column3 with words of column2 if both columns are blanks than fill the column with column 1 else blank

 

please refer the screen shot

 

Spl.PNG

 

Black colour are actual value present in column 3

Blue colour are column 1 value

Orange colour are column 2 value filled in the desired output table.

 

Please suggest how to make this desired table.

Thank you in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: filling blanks with previous column text

@dineshkumar_vrv,

You can also use the following DAX to calculate Column 4.

Column 4 = IF(Table[Column3]=BLANK(),IF(Table[Column2]=BLANK(),Table[Column1], Table[Column2]),Table[Column3])

1.PNG

Regards,

Community Support Team _ Lydia Zhang
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

2 REPLIES 2
Super User
Super User

Re: filling blanks with previous column text

I believe that you will need a column 4 with the formula:

 

Column 4 = IF(ISBLANK([Column 3]),IF(ISBLANK([Column 2]),[Column 1], [Column 2]),[Column 3])

I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

Moderator v-yuezhe-msft
Moderator

Re: filling blanks with previous column text

@dineshkumar_vrv,

You can also use the following DAX to calculate Column 4.

Column 4 = IF(Table[Column3]=BLANK(),IF(Table[Column2]=BLANK(),Table[Column1], Table[Column2]),Table[Column3])

1.PNG

Regards,

Community Support Team _ Lydia Zhang
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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 536 members 4,390 guests
Please welcome our newest community members: