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
Yrstruly2021
Helper V
Helper V

Combining Two Data Columns

How do i combine two columns Posting Period and Fiscal year to get this output Fiscal year period:fiscal.png

Columns Posting Period and Fiscal year in table Fact must be combined.

 

https://drive.google.com/file/d/1wfjbLI7nBLQU5-Qs5rGHOL2XP4uc0UR9/view?usp=sharing 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Yrstruly2021 

 

May I ask if this is the expected output you are looking for? Based on your description, I have done this in Power Query to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1703066579871.png

 

 

vyaningymsft_1-1703066579874.png

 

Advanced Editor:

let

    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTIyMDJUitXBxzGCcIwIcIwhHGN8nFgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Posting Period" = _t, #"Fiscal year" = _t]),

    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Posting Period", type text}}),

    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each "00"&[Posting Period]),

    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each [Custom]&"."&[Fiscal year]),

    #"Renamed Columns" = Table.RenameColumns(#"Added Custom1",{{"Custom.1", "Fiscal year period"}})

in

    #"Renamed Columns"

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If 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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @Yrstruly2021 

 

May I ask if this is the expected output you are looking for? Based on your description, I have done this in Power Query to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1703066579871.png

 

 

vyaningymsft_1-1703066579874.png

 

Advanced Editor:

let

    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTIyMDJUitXBxzGCcIwIcIwhHGN8nFgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Posting Period" = _t, #"Fiscal year" = _t]),

    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Posting Period", type text}}),

    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each "00"&[Posting Period]),

    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each [Custom]&"."&[Fiscal year]),

    #"Renamed Columns" = Table.RenameColumns(#"Added Custom1",{{"Custom.1", "Fiscal year period"}})

in

    #"Renamed Columns"

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If 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

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.