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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Jorjor
Frequent Visitor

Drill to a related column with multiple values

I'm having issues drilling throigh Component IDs to PRs. There is multiple Component in each PR which is causing an issue. I have the component IDs connected should I change it to a different connection?

 

post_3.PNG

 

Jorjor_0-1718651947029.png

 

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

Hi @Jorjor 

You need to change your component id in PR table.

In Power query, split the component id column of the prs table to row by comma, 

vxinruzhumsft_0-1718673836730.png

 

And you can refer to the following M code in advanced editor

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTLSMdExA9KGSrE60UpGIJaOMZA0BvONwXyYGnOwmAlUlwWIVoqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [PRID = _t, #"Component ID" = _t, QTY = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"PRID", Int64.Type}, {"QTY", Int64.Type}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Component ID", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Component ID"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Component ID", Int64.Type}})
in
    #"Changed Type1"

2.Then create a relationship between tables

vxinruzhumsft_1-1718673925298.png

Then it can drill through.

You can refer to the attachment.

 

Best Regards!

Yolo Zhu

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

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @Jorjor 

You need to change your component id in PR table.

In Power query, split the component id column of the prs table to row by comma, 

vxinruzhumsft_0-1718673836730.png

 

And you can refer to the following M code in advanced editor

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTLSMdExA9KGSrE60UpGIJaOMZA0BvONwXyYGnOwmAlUlwWIVoqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [PRID = _t, #"Component ID" = _t, QTY = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"PRID", Int64.Type}, {"QTY", Int64.Type}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Component ID", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Component ID"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Component ID", Int64.Type}})
in
    #"Changed Type1"

2.Then create a relationship between tables

vxinruzhumsft_1-1718673925298.png

Then it can drill through.

You can refer to the attachment.

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors