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
muthusaran
Regular Visitor

MS Excel Pivot to Power BI

I'm new to Power BI and while learning it, I tried to replacate few existing Microsoft Excel Pivot in PowerBI and succeeded. One of the attached Pivot couldn't be replicated in PowerBI. Please help me with it .

You may give suggestions like after importing the data (this data exists in SQL server), Create Matrix --> Add Rows (fields names) --> Add columns (field names) --> Add Values (field names) for me to try it out. Sample data that I used and corrsponding Pivot is attached here

 

Data : (Can be in Excel or SQL table) Imported into PowerBI

YearMonthProductBatchCGUnitMonthProd CostPacking CostCover CostMRPProfitExpense
202305BritanniaP01Chennai0120230110111530
202305BritanniaP01Chennai01202302910.51000.5
202305BritanniaP01Chennai02202302100.51.51640.5
202305BritanniaP01Chennai03202302110.51.51651
202305BritanniaP01Chennai0420230290.51.51321
202305BritanniaP01Chennai01202303910.51000.5
202305BritanniaP01Chennai02202303100.51.51640.5
202305BritanniaP01Chennai03202303110.51.51651
202305BritanniaP01Chennai0520230390.51.51321
202305BritanniaP01Chennai01202304910.51000.5
202305BritanniaP01Chennai05202304100.51.51640.5
202305BritanniaP01Chennai01202306910.51000.5
202305BritanniaP01Chennai05202306100.51.51640.5
202305BritanniaP02Chennai0120230110111530
202305BritanniaP02Chennai01202302910.51000.5
202305BritanniaP02Chennai02202302100.51.51640.5
202305BritanniaP02Chennai03202302110.51.51651
202305BritanniaP03Chennai0420230290.51.51321
202305BritanniaP03Chennai01202303910.51000.5
202305BritanniaP03Chennai02202303100.51.51640.5
202305BritanniaP04Chennai03202303110.51.51651
202305BritanniaP04Chennai0520230390.51.51321
202305BritanniaP04Chennai01202304910.51000.5
202305BritanniaP04Chennai05202304100.51.51640.5
202305BritanniaP04Chennai01202306910.51000.5
202305BritanniaP04Chennai05202306100.51.51640.5

 

MS Excel Pivot settings are:

Excel Pivot coming out as

muthusaran_0-1694421709138.png

 

MS Excel Pivot looks like below. For each type of cost, it shows different cost involved per month.

muthusaran_1-1694421745622.png

 

However, If I replicate in PowerBI, i'm seeing like below. Under each Unit, types of amt is listed instead of Types of Amount as above (getting in excel). I need to get same as Excel pivot in Power BI. Please help me the options/suggestions to achieve.

 

muthusaran_2-1694421888035.png

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @muthusaran ,

Please refer to my pbix file to see if it helps you.

vrongtiepmsft_0-1694569261751.png

 

Please learn more about matrix in power bi: Create a matrix visual in Power BI - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the effort.

 

I need this similar to Excel pivot.

If we have future period, it will keep on appending and we need to drag to right side which is not expected.

muthusaran_0-1694578919968.png

Expected Matrix/Table in Power BI: (Same as Excel Pivot below)

 

muthusaran_1-1694578987968.png  

Below is the Pivot in Excel looks.

muthusaran_2-1694579108100.png

 

PBIX File: I don't see an option to upload. But, my PBIX looks like below

 

muthusaran_3-1694579321145.png

 

But, My visualization in my pbix is like below

 

muthusaran_19-1694580126497.png

 

muthusaran_18-1694580092462.png

 

muthusaran_17-1694580069593.png

 

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.