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
DenisSlav
Frequent Visitor

Split the combined value into two separate lines

Hello Community, 

How can I transform the table:

ITEM_LISTIDVALUE
XYZ1700
ABC | XYZ21000
ABC | QWE | ASD3600

Where in DESCRIPTION  list of items with delimeter " | ". To another table with condition EST_VALUE = VALUE / N, where N - count of different item in description:

ITEMIDEST_VALUE
XYZ1700
ABC2500
XYZ2500
ABC3200
QWE3200
ASD3200

 

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

Hi,

 

According to your description, please take following steps:

1)Split [ITEM_LIST] into rows by " | ":

120.PNG

2)After Apply&Close, create a measure as below:

Measure = SUM('Table'[VALUE]) / CALCULATE(COUNTROWS('Table'),FILTER(ALLSELECTED('Table'),'Table'[ID] in FILTERS('Table'[ID])))

3)The result shows:

121.PNG

Here is my test pbix file:

pbix 

Hope this can help.

 

Best Regards,

Giotto Zhi

 

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, please take following steps:

1)Split [ITEM_LIST] into rows by " | ":

120.PNG

2)After Apply&Close, create a measure as below:

Measure = SUM('Table'[VALUE]) / CALCULATE(COUNTROWS('Table'),FILTER(ALLSELECTED('Table'),'Table'[ID] in FILTERS('Table'[ID])))

3)The result shows:

121.PNG

Here is my test pbix file:

pbix 

Hope this can help.

 

Best Regards,

Giotto Zhi

 

amitchandak
Super User
Super User

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.

Top Solution Authors