Allocation of Fixed Costs Equally

DSP VARMA

New Member
Joined
Dec 27, 2016
Messages
9
Hi All,

As a new user of Power BI I am facing difficulties. I am attaching an excel sheet that has Raw Data and Required Results. I want the same result which is in Require Result using measures in Power BI Matrix Visual with Domain Slicers. Thanks in Advance

SGA for Power BI.xlsx
ABCDEF
1Particular A B C D Total
2Marketing3723033
3Adm431023527504
4Gen Admin1024832119
5Per8802,0857,16814510,278
6Tra-----
7IT exp98232876161,221
8Wir Tel1125882125
9Maintenance-----
10Legal Exp-----
11Rent99235923161,273
12Consulting23561914274
Original RD
Cell Formulas
RangeFormula
F2:F12F2=SUM(B2:E2)





SGA for Power BI.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
1Domain (All)
2
3Sum of Value Column Labels
4Row Labels 01-06-2022 02-06-2022 03-06-2022 04-06-2022 05-06-2022 06-06-2022 07-06-2022 08-06-2022 09-06-2022 10-06-2022 11-06-2022 12-06-2022 13-06-2022 14-06-2022 15-06-2022 16-06-2022 17-06-2022 18-06-2022 19-06-2022 20-06-2022 21-06-2022 22-06-2022 23-06-2022 24-06-2022 25-06-2022 26-06-2022 27-06-2022 28-06-2022 29-06-2022 30-06-2022 Grand Total
5Adm50450450450450450450450450450450450450450450450450450450450450450450450450450450450450450415,124
6Consulting2742742742742742742742742742742742742742742742742742742742742742742742742742742742742742748,234
7Gen Admin1191191191191191191191191191191191191191191191191191191191191191191191191191191191191191193,581
8IT exp1,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,2211,22136,624
9Legal Exp-------------------------------
10Maintenance-------------------------------
11Marketing3333333333333333333333333333333333333333333333333333333333331,000
12Per10,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,27810,278308,335
13Rent1,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,2731,27338,200
14Tra-------------------------------
15Wir Tel1251251251251251251251251251251251251251251251251251251251251251251251251251251251251251253,763
16Grand Total13,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,82913,829414,861
Required Result
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You do not have dates in the raw data, so why do you add it in your required result? If it the same, why show the split over days?

Else, unpivot RD, selecting column A, right click and unpivot other columns (in Transform data/Power Query).
Filter the attribute column like <> Total. Since you can calculate those, you do not need them. (Best to replace both Attribute and Value by explicit names)
Load this table to the data model.
Add a measure like SUM(RD[Value]) in the data model.
Now build the matrix.

However -> without a date in your RD table, you will get cartesian products. You can repeat the values you obtain through PQ by creating a list of dates (List.Dates - PowerQuery M). Then expand this list. That way you can connect your RD to a calendar table. Doing so might complicate others things you are trying to achieve within PowerBI. I can't tell.
Maybe the same is possible through DAX too, but that I do not know.
 
Last edited:
Upvote 0
You do not have dates in the raw data, so why do you add it in your required result? If it the same, why show the split over days?

Else, unpivot RD, selecting column A, right click and unpivot other columns (in Transform data/Power Query).
Filter the attribute column like <> Total. Since you can calculate those, you do not need them. (Best to replace both Attribute and Value by explicit names)
Load this table to the data model.
Add a measure like SUM(RD[Value]) in the data model.
Now build the matrix.

However -> without a date in your RD table, you will get cartesian products. You can repeat the values you obtain through PQ by creating a list of dates (List.Dates - PowerQuery M). Then expand this list. That way you can connect your RD to a calendar table. Doing so might complicate others things you are trying to achieve within PowerBI. I can't tell.
Maybe the same is possible through DAX too, but that I do not know.
Thanks for your reply. But the table without the dates is per day expenses for the complete month which are divided equally over the month. But I prefer the DAX formula for the solution.
 
Upvote 0

Forum statistics

Threads
1,223,350
Messages
6,171,584
Members
452,411
Latest member
colpie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top