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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

% of each row in subtotal

Hi guys I need some help.

details_1-1678733407691.png

 

It's a P&L statement under development. I need to use a table, not a matrix because of the ragged hierarchy as I have a lot of different hierarchy levels.

 

-I have made in Excel the P&L statement and imported it to Power Bi ;

- The "rubricas" in this excel are linked to "movements" tables and also "accounts" table;

- I have a table with all account movements (let's call the table "movements");

-I have measures to calculate some total ( for example: "Total Revenue" and "Sub-Total Salaries")

- the measures are all similar: (example for "Total Revenue"    Total Sales =calculate(sum(movement[vales], movement[rubric] in {1002,1002,10031004,1005,1006,1007,1099}), and only changing the "rubricas" to the ones I need to SUM for each measure.

 

After creating the measures of the totals, i need to apply to each row the respective value. For example, for rubrica 1001, it should present the result of total sales filtered for rubrica 1001 and so on... For the "rubrica " 10001, it should present the inicial total sales

 

to do this i have made a measure "values" that calculates the correct vale for each rubrica.

 

This is all working.

 

Now the issue:

 

I need a new collum to present for each "rubrica" the % of his weight in the total sales. But not also for the revenue... i need this measure to do this calculations for each "rubrica", not only fror the ones from Revenue group.

 

My idea is a mesaure something like this:

 

% On Total Revenue = [total sales] / calculate([total sales],movement[rubrica] in { 1001,1002,1003,1004,1005,1006,1007,1009})

 

so what i realy need is the second part of this measure, something that calculates the total sales of all that "rubricas" and doesn't changes with any filter or rubricas.

 

Thank you

 

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.