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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Split data

Hi All,

 

Can any one help me to split the data into rows without affecting the total Numbers.

why i need the UDN into rows because I need to create a row level security based on the UDN to give them the respective data access.

 

Let me know is there any better way of doing it.

The below are just the data samples.

Split.jpg

 

 

 

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

Hi @RanjanThammaiah 

If you'd like this result, please refer to @Mariusz 's pbix.

Capture11.JPG

If you'd like this, please refer to table "new1" and page2 in my pbix

Capture12.JPG

Before spit columns into rows, add an exdex column,

then Create measures

single_value =
VAR count_ =
    CALCULATE (
        COUNT ( new1[UDN] ),
        FILTER ( ALLSELECTED ( new1 ), new1[Index] = MAX ( new1[Index] ) )
    )
RETURN
    SUM ( new1[VALUE] ) / count_

Measure 3 = IF(HASONEVALUE(new1[UDN]),SUM(new1[VALUE]),SUMX(ALLSELECTED(new1),[single_value]))

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @RanjanThammaiah 

If you'd like this result, please refer to @Mariusz 's pbix.

Capture11.JPG

If you'd like this, please refer to table "new1" and page2 in my pbix

Capture12.JPG

Before spit columns into rows, add an exdex column,

then Create measures

single_value =
VAR count_ =
    CALCULATE (
        COUNT ( new1[UDN] ),
        FILTER ( ALLSELECTED ( new1 ), new1[Index] = MAX ( new1[Index] ) )
    )
RETURN
    SUM ( new1[VALUE] ) / count_

Measure 3 = IF(HASONEVALUE(new1[UDN]),SUM(new1[VALUE]),SUMX(ALLSELECTED(new1),[single_value]))

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mariusz
Community Champion
Community Champion

Hi @RanjanThammaiah 

 

You can Create a Bridge table that filters Original Table or Split the Values, 

Please see both solutions on the attached file

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

tex628
Community Champion
Community Champion

Follow these steps:

Starting table:
image.png

Split column 1 by delimiter ",":
image.png

Highlight all column except for the value, then press Unpivot Columns:
image.png

Should give you the following result:
image.png

Hope it helps,



Connect on LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.