Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Paginated Report Gurus,
I wanted to show a paginated report visual like below (need recommendation to the type of the visual I should use too.
below is how the data organised in the backend SQL table. Should it be organised in a diffrent way to achieve the above visual. any advice will be hightly appriciated. Thanks a lot in advance
Solved! Go to Solution.
HI @amalrio,
You can use 'transpose table', 'promoted header', and 'unpivot columns' functions to shape the table structure to reproduce the effect in matrix visual.
Result:
Full query:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bY4xD4MgEIX/CmFWgkCBjm23Jk2HdmmMAzGoTSwY1P9fQDRNKmF49+67e1eWsIAZ9P9uNLhZM3VePzunUzWm1ksrB6ushGTBi/w0tzkporzOZpUPPeQER5IuJP1B93WAWcgZtHmbFpxVr0ytvUMo5UJSiQjD8QWPCcoYI0iIzYsrDuFyp8zYaAcaZz9A1bWdzQQQQsstcZxiwbFAcl0ZZrnvXHo7/sWTgpEjknyLwslEx2TuclX1BQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Index = _t, TX = _t, M1 = _t, M3 = _t, Y1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Index", Int64.Type}, {"TX", type text}, {"M1", type text}, {"M3", type text}, {"Y1", type text}}),
#"Transposed Table" = Table.Transpose(#"Changed Type"),
#"Removed Top Rows" = Table.Skip(#"Transposed Table",1),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"", type text}, {"_1", type date}, {"_2", type date}, {"Opening Balance", type number}, {"Transfer from account ...", type number}, {"Closing Balance", type number}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type1", {"", "_1", "_2"}, "Attribute", "Value"),
#"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"", "Desc"}, {"_1", "Date1"}, {"_2", "Date2"}, {"Attribute", "TX"}})
in
#"Renamed Columns"
Regards,
Xiaoxin Sheng
HI @amalrio,
You can use 'transpose table', 'promoted header', and 'unpivot columns' functions to shape the table structure to reproduce the effect in matrix visual.
Result:
Full query:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bY4xD4MgEIX/CmFWgkCBjm23Jk2HdmmMAzGoTSwY1P9fQDRNKmF49+67e1eWsIAZ9P9uNLhZM3VePzunUzWm1ksrB6ushGTBi/w0tzkporzOZpUPPeQER5IuJP1B93WAWcgZtHmbFpxVr0ytvUMo5UJSiQjD8QWPCcoYI0iIzYsrDuFyp8zYaAcaZz9A1bWdzQQQQsstcZxiwbFAcl0ZZrnvXHo7/sWTgpEjknyLwslEx2TuclX1BQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Index = _t, TX = _t, M1 = _t, M3 = _t, Y1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Index", Int64.Type}, {"TX", type text}, {"M1", type text}, {"M3", type text}, {"Y1", type text}}),
#"Transposed Table" = Table.Transpose(#"Changed Type"),
#"Removed Top Rows" = Table.Skip(#"Transposed Table",1),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"", type text}, {"_1", type date}, {"_2", type date}, {"Opening Balance", type number}, {"Transfer from account ...", type number}, {"Closing Balance", type number}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type1", {"", "_1", "_2"}, "Attribute", "Value"),
#"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"", "Desc"}, {"_1", "Date1"}, {"_2", "Date2"}, {"Attribute", "TX"}})
in
#"Renamed Columns"
Regards,
Xiaoxin Sheng
Can you plese let me know how do I sort Text Column, I have tried with no suceess as TX column has duplicate values. I have tired to added a sort order column since TX column has duplicate values it does not allow me to do so.
The order I want it below
Opening Balance
Transactions
Closing Balance
Your help is much appriciated.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |