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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Is it possible to create variables in Power BI similar to summarization results from an Excel Pivot?

Hi All,

 

I am new to Power BI and I am working on a project where I am supposed to replicate the excel charts to Power BI. These excel charts are designed using summarization measures from different pivot tables. Our goal is to load raw excel file into Power BI and automate as much as possible so the visualizations are updated every time excel is updated. However, I am having hard time on how to recreate these charts built using summarization from excel pivots.

 

For eg, see below for one of the pivots used to build a chart

BIuser_4_0-1643222885173.png

 

It has 5 different filters on Ref, Type, Subtype, Role and dept. The data is displayed for Division and Division Name. Creating a new column using CALCULATE & SUM is giving a aggregated count irrespective of division and division name. So, I am stuck on how to create "Total Budget" measure efficiently so I can filter it by division and also use it in a line chart with other measures (like in image below)

 

Edit:  Another issue I have is that the pivot chart I have in excel is using measures from multiple pivots. For eg, take the image below as an excel chart, it has 3 measures  - Budget, Design Costs, Construction costs. These 3 measures came from 3 different pivots by summarizing different amounts. My goal is to create variables which are summarized results of these pivots. Is there a way to create calculated measures which give similar summarization results like a pivot table in excel?

BIuser_4_0-1643214862344.png

Image: https://www.clearpointstrategy.com/dashboards/budget-vs-actual-dashboard/

 

Any help is appreciated. Thanks a lot!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Thanks for the response. My issue is not in building the visualization but is more about structuring the data and creating the variables that replicate the pivot tables built in excel. At this time, I have learnt to pivot the columns in Power BI to match the pivots in excel using the "Pivot Column" option in Power Query. 

View solution in original post

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could use Line and stacked column chart , then date as x-axis, then add values or column series.as follows:

vyalanwumsft_0-1643699422332.png

But don't know what the structure of your data is? Can you share a simple data after removing sensitive information, as well as screenshots of the results you want to output in Excel? So that we can restore better at Power BI.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi,

 

Thanks for the response. My issue is not in building the visualization but is more about structuring the data and creating the variables that replicate the pivot tables built in excel. At this time, I have learnt to pivot the columns in Power BI to match the pivots in excel using the "Pivot Column" option in Power Query. 

amitchandak
Super User
Super User

@Anonymous , You need to use Matrix visual

row - Division and Division Name

Column - Year

Measure on Values - Sum of a column

Anonymous
Not applicable

Hi Amit,

 

Thanks for your quick response. I have tried doing that way. However, one issue I have is that the pivot chart in excel is using Sum(column) from 3 different pivot charts. 

 

For eg, one pivot is showing budget, one pivot is showing expenses. A chart is designed in excel showing Budget, expenses, budget left in the same chart. How can I replicate that if I design a matrix with one pivot?

@Anonymous ,not able to visualize what you want.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

Thanks again for quick response. I found a google image that looks similar to my excel chart.

BIuser_4_0-1643214119581.png

Image courtesy: https://www.clearpointstrategy.com/dashboards/budget-vs-actual-dashboard/

 

If you see in the chart above, it has 3 measures -  Budget, design costs, construction costs. If those 3 measures are results from 3 pivots, how would you be able to replicate it in Power BI? The image I shared originally is showing one pivot that gives the total budget count and budget by division.

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.