Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jenningobo
Frequent Visitor

Data transformation

Hello! I need help with data transformation. Here is an example of my data

I need to understand how to reshape/transform it so that I can use it as a regular data table and create measures and visualizations in Power BI Report Server with all the necessary filters: Year (from 2017-2028), Category (1-3), Country, Region.

Note: The country/region column is not only for individual countries but also for different political and geographical regions.

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @jenningobo  You can reshapre your data using power query. I am attaching file here for your reference. Download and open power query to check steps. Steps are: First, filter out All the totals and only keep categories 1,2,3. Then select country/region, figure, unit column and unpivot other column. This way years will be in one column and value will be in other column. All the regions and country in one column. So, You can create 2 seperate query. One for country and other for region and create relationship between them.

Reshape file 

 

Hope this helps!!

If this solve your problem, please accept it as a solution!!

View solution in original post

3 REPLIES 3
shafiz_p
Super User
Super User

Hi @jenningobo  You can reshapre your data using power query. I am attaching file here for your reference. Download and open power query to check steps. Steps are: First, filter out All the totals and only keep categories 1,2,3. Then select country/region, figure, unit column and unpivot other column. This way years will be in one column and value will be in other column. All the regions and country in one column. So, You can create 2 seperate query. One for country and other for region and create relationship between them.

Reshape file 

 

Hope this helps!!

If this solve your problem, please accept it as a solution!!

Hello Shafiz! Thank you for your assistance! Looks like it works. I have created separate queries for Revenue, User, and ARPU. Could you please suggest the relationships between these tables? Do I need to create a DateTable?

Since you have created 3 separate queries, to develop relationship among them, I would suggest just create a seperate query for year (Unique) only (You could create Date table , but won't serve purpose). Also, country/region (Unique) is other dimension you need to develop relationship.



Hope this helps!!

If this solved your problem, please mark it as a solution!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.