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,
Have input file like bellow.
i need output as bellow in power BI
How to achive above output in Power BI
The easiest solution is to import the data for 4 region in separate queries, add a column named "Region" to all 4 and then append the data back.
Steps -
1. Import Query 1 - Keep first 4 columns (Africa) & remove other columns, add new column named "Region" with value "Africa"
Import Query 2 - Keep columns 6-9 (US) & remove others, add new column named "Region" with value "US"
Import Query 3 - Keep columns 11-14 (Asia) & remove others, add new column named "Region" with value "Asia"
Import Query 4 - Keep columns 16-19 (Europe) & remove others, add new column named "Region" with value "Europe"
2. Now Append the 4 queries created in step 1.
P.s. please make sure same data type is selected for same columns across 4 queries
Hope this helps.
Thanks for quick response.
Have one more query, is their any option to split columns auotomatically and apped query isted of manual column split and append
Try this -
1. Keep region names above the first column. i.e. "US" should be in the cell right above "Order Date"
2. Import the file into Power query
3. Remove the blank columns between regions
4. Go to 'Transform' tab and click "Transpose"
5. Promote 'First row as headers'
6. Rename first column as 'Region'
7. select first column, go to "Transform" tab, click "Fill" option and select Fill "Down". This will populate the regions
8. Select first 3 columns (other than those which have date as column name), then right click on selected column and select "Unpivot other columns"
This should arrive you at the desired format. Then you can rename all columns as required.
@Anonymous ,
You have a few options. But it better to do outside power bi.
Create 4 copies of this excel. in 1st one keep the first 4 columns remove the other. In 2nd one keep the next 4 columns and remove the others. Select the 4 right-click sn use remove other .
Append these 4 tables.
Another option is in this blog
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 |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |