Forum

How to add new calc...
 
Notifications
Clear all

How to add new calculated measure?

9 Posts
3 Users
0 Reactions
155 Views
(@ynwee17gmail-com)
Posts: 5
Active Member
Topic starter
 

There are no Gross Profit, Net Expenses, Operating Profit in my budget data, as there are derived figures.  This has caused difficulty for me to do Power BI/Excel Dashboard.

Is there a way that I could get the figures easily from Power Query or any formula to clean/extract those figures easily?

Thank you very much.

 
Posted : 08/01/2024 7:40 pm
(@catalinb)
Posts: 1937
Member Admin
 

Hi Yen,

You can add a new measure in Power Pivot, not in Power Query. I don't know the math behind your data, what formula are you looking for?

 
Posted : 11/01/2024 1:21 am
(@ynwee17gmail-com)
Posts: 5
Active Member
Topic starter
 

Hi, 

I would like to use the data to create dashboard in Power BI or Excel Dashboard.

Could you please teach me how to add a new measure?

E.g.

I only have information for sales, cogs, expenses.

I would like to new measure (a) Gross Profit = Sales - COGS (b) Operating Profit = Gross Profit - Expenses

However, it is not easy to do in the data i am having now.

 

You are right that I'm currently using Power Pivot to do so, but I need the data for Power BI or Excel Dashboard.  I do not know how to switch between the data.

Thank you.

 
Posted : 11/01/2024 4:03 am
(@catalinb)
Posts: 1937
Member Admin
 

Attached an example.

You should learn at least the basics of Power Pivot before creating reports, here is a video that can get you started:

https://www.youtube.com/watch?v=TK0CJBaqvnY

 
Posted : 12/01/2024 2:11 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Yen,

Creating a Profit and Loss statement in Power BI/Power Pivot is very difficult because it's not designed to work on rows within columns. I recommend you search for some videos/blog posts on "Power BI Profit & Loss" and try to get some pointers.

Good luck!

Mynda

 
Posted : 12/01/2024 1:09 pm
(@ynwee17gmail-com)
Posts: 5
Active Member
Topic starter
 

Thank you very much

 
Posted : 12/01/2024 7:20 pm
(@ynwee17gmail-com)
Posts: 5
Active Member
Topic starter
 

Hi Catalin and Mynda,

Thanks for the information.  Actually, i am not looking into building Power BI P&L.  Due to lacking of information (i.e. GP), I have the difficulty to do charts/graph for GP and GP% analysis.  My purpose is create graph and charts for GP and GP%, hence i need to know how to write the formula in Power BI.

Could you please help me?  Thank you very much.

 
Posted : 19/02/2024 11:40 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Yen,

It will depend on the structure of your model, but generally speaking, it would be like this:

GrossMargin Sales[SalesAmount] Sales[TotalProductCost]

Gross Margin % DIVIDE SUM Sales[GrossMargin] )SUM (Sales[SalesAmount] )

This post has further explanation.

Mynda

 
Posted : 20/02/2024 5:00 am
(@ynwee17gmail-com)
Posts: 5
Active Member
Topic starter
 

Thank you.

 
Posted : 20/02/2024 8:51 pm
Share: