Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Team,
Can you please help me on power query to transformation?
Input
same input was loaded into the power bi file and link is attached in the below
Reference power bi File: https://1drv.ms/u/s!Au-aOkl1BoHuhwcy-cGvuQhVMj6-?e=LSc2U2
Output
Please let me know if you need any more information
Thanks In advance
RGV
Solved! Go to Solution.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Custom1 = Table.UnpivotOtherColumns(Table.Skip(Table.PromoteHeaders(Table.Skip(Table.Transpose(Table.CombineColumns(Table.Transpose(Source),{"Column2","Column3"},each if _{0}=null or _{0}="" then "Country" else Text.Combine(_,"-"),"n"))))),{"Country"},"Date","Actual")
in
Custom1
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Custom1 = Table.UnpivotOtherColumns(Table.Skip(Table.PromoteHeaders(Table.Skip(Table.Transpose(Table.CombineColumns(Table.Transpose(Source),{"Column2","Column3"},each if _{0}=null or _{0}="" then "Country" else Text.Combine(_,"-"),"n"))))),{"Country"},"Date","Actual")
in
Custom1
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |