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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
itEquilibria
New Member

Combine not empty cells from almost empty rows

Hi! I have this table:

IdNameItemsDate
1AItem 101-01-2021
  Item 2 
2BItem 301-02-2021
3CItem 401-01-2021
  Item 5 
  Item 6 

 

The data in the rows with the empty cells in Id, Name and Date belong to the previous not empty row, I need to combine the the data with a delimmter like this:

 

IdNameItemsDate
1AItem 1,Item 201-01-2021
2BItem 301-02-2021
3CItem 4,Item 5,Item 601-01-2021
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @itEquilibria ,

 

According to your description, you first need to use the filled down function in the power query. Then create a column and filter the rows whose ID is not empty in the table visual. I did a test, the reference is as follows:

vhenrykmstf_0-1630403261120.png

Column = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Items] ), 'Table'[Items], "," ),
    ALLEXCEPT ( 'Table', 'Table'[Id] )
)

vhenrykmstf_1-1630403368062.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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
v-henryk-mstf
Community Support
Community Support

Hi @itEquilibria ,

 

According to your description, you first need to use the filled down function in the power query. Then create a column and filter the rows whose ID is not empty in the table visual. I did a test, the reference is as follows:

vhenrykmstf_0-1630403261120.png

Column = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Items] ), 'Table'[Items], "," ),
    ALLEXCEPT ( 'Table', 'Table'[Id] )
)

vhenrykmstf_1-1630403368062.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

You should fill the empry cells in Power Query using the Fill down option. You can then use CONCATENATEX to get the expected output





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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