Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi guys I need some help.
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
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |