Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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

 

  • Hi,

     

    According to your description, please take following steps:

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

    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:

    Here is my test pbix file:

    pbix 

    Hope this can help.

     

    Best Regards,

    Giotto Zhi

     

2 Replies