The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
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,
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
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.
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,
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
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.