Forum Discussion
calculated table on PBI
Hello I need guidance on the calculated table
I have a table like
| GROUP | WIN | COUNT | ROUND |
| 0-5% | B | 18 | IVRCOM |
| 0-5% | B | 7 | IVRPP |
| 0-5% | B | 11 | IVRBC |
and my required result is like
| ROUND | GROUP | B | I |
| IVRCOM | 0-5% | 18 | |
| IVRPP | 0-5% | 7 | |
| IVRBC | 0-5% | 11 |
on a calculated table
Thank & Regards
3 Replies
- AhmedxSuper User
you'd better do it in power query
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtA1VVXSUXICYkMLIOEZFuTs76sUq4MiZQ6RCQhAlzA0hMg4OSvFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [GROUP = _t, #" WIN" = _t, #" COUNT" = _t, #" ROUND" = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"GROUP", type text}, {" WIN", type text}, {" COUNT", Int64.Type}, {" ROUND", type text}}), #"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[#" WIN"]), " WIN", "GROUP") in #"Pivoted Column" - BIswajit_DasImpactful Individual
But this is a calculated table
- AnonymousNot applicable
Hi BIswajit_Das ,
Consider sharing some sample data and code without private information. That would be helpful.
How to provide sample data in the Power BI Forum
Also consider reconstructing this table in the PowerQuery editor.Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum