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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
JohnnyK
Advocate II
Advocate II

Visuals from pivot table of imported data

Sample data as below.

 

NameTeamScoreCredit
EmmaFinance18849
LiamOperation32618
NoahRunning37810
AvaMedical14434
OliverFinance26910
SophiaRunning15948
WilliamOperation49648

 

 

I want to build visuals based on its pivot table (Excel concept), like:

 

2-9-2021 12-36-32 PM.png

 

What would be the convenient way in Power BI, that I can produce PivotTable alike from the imported data, and save it as a data table, before starting to build visuals?

 

Thank you.

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @JohnnyK  ,

1. When Table1 is the original table, open power query and copy Table1 to form Table2

v-yangliu-msft_0-1612936358771.png

2. According to your own needs, in Transform, look for Pivot Column for Pivot to form a pivot table Table2

v-yangliu-msft_1-1612936358775.png

3. Select Close&Aply to visualize in Power BI Desktop

 

Best Regards,

Liu Yang

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

View solution in original post

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Hi  @JohnnyK  ,

1. When Table1 is the original table, open power query and copy Table1 to form Table2

v-yangliu-msft_0-1612936358771.png

2. According to your own needs, in Transform, look for Pivot Column for Pivot to form a pivot table Table2

v-yangliu-msft_1-1612936358775.png

3. Select Close&Aply to visualize in Power BI Desktop

 

Best Regards,

Liu Yang

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

@v-yangliu-msftthank you for this new knowledge to me!

JohnnyK
Advocate II
Advocate II

@amitchandakthank you for your reply. Sorry for not asked the question in full - I meant, then how I can save the pitvot table as a data table, and use the saved pitvot table (as a data table) for visualization.

 

@JohnnyK , In power Query you have option to pivot the table 

https://radacad.com/pivot-and-unpivot-with-power-bi

Hope that can help. You might have to change aggregation if needed. 

 

Once pivot is create, right click on table and open the Adnace editor, and check for List.Max or List.count or Table.Max or Table.Count and change that to .Sum or .Count if needed 

 

amitchandak
Super User
Super User

@JohnnyK , You can create table or matrix visual with sum and count of columns.

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

You can give default summarization in columns tools, if needed or right-click on the column in the visual pane and choose summarization

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.