list reports with calculated percentage in Power BI using dax

0 votes

I have a Power BI report with multiple lines (it's a P and L report) displayed in a list visualisation.

It's populated from a view in SQL

One of the lines is 'Total Revenue'

I need every line to display its proportion of Total Revenue as a percentage:

i.e.

LINE           MTH     %
------------------------
Line1            5    10 
Total Revenue   50   100
Line2           20    40
Line3            4     8
Line4           12    24
Note that MTH does not add up to total revenue so I can't just take the total, I need to take the line called Total Revenue as the denominator
Oct 22, 2018 in Power BI by shubham
• 6,830 points
76 views

1 answer to this question.

0 votes

Create a Measure called Total Revenue:

Total Revenue = 
SUMX(
    CALCULATETABLE(
        'vw_PandL',
        'vw_PandL'[Line] = "Total Revenue"
    ),
    [MTH]
)

Create another Measure called %:

% = VALUES(vw_PandL[MTH]) / [Total Revenue]

And it will work with filters applied.

answered Oct 22, 2018 by Hannah
• 14,080 points

Related Questions In Power BI

0 votes
1 answer

how can I connect my web api with Power BI Reports?

Go to Home > Edit Queries > ...READ MORE

answered Oct 18, 2018 in Power BI by Annie97
• 2,190 points
747 views
0 votes
1 answer

Dax query in power bi

Here is my table before I have ...READ MORE

answered Oct 22, 2018 in Power BI by Hannah
• 14,080 points
60 views
0 votes
1 answer

How can i see my plugin name in the Power BI Visual plugin List ?

there is a couple of errors in your ...READ MORE

answered Nov 8, 2018 in Power BI by Upasana
• 8,410 points
42 views
0 votes
1 answer

Call Azure API with nextLink (next page) in Power BI

Here is something you could try or ...READ MORE

answered Nov 12, 2018 in Power BI by Upasana
• 8,410 points
156 views
+3 votes
2 answers

Combine tables in Power BI

You can also achieve this using a ...READ MORE

answered Oct 5, 2018 in Power BI by lina
• 8,100 points

edited Oct 11, 2018 by Kalgi 107 views
0 votes
1 answer

Power Bi Dax Table

You need to wrap the numbers in ...READ MORE

answered Oct 5, 2018 in Power BI by Kalgi
• 37,320 points
52 views
0 votes
2 answers

Power BI Dax Multiple IF AND Statements

HI I have Column Patient 12 13 14 15 18 IN Patient=12, 13 Out ...READ MORE

answered May 22 in Power BI by VNK
5,439 views
0 votes
1 answer

Distinct count filtered by condition using Power BI Dax

Try this, it should work: DistinctCountActiveMonths = CALCULATE( ...READ MORE

answered Oct 5, 2018 in Power BI by Kalgi
• 37,320 points
3,627 views
0 votes
1 answer

How many reports can be created in one Power BI reports

You have a limit of 1000 datasets ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 14,080 points
36 views
+1 vote
1 answer

Have column with multiple values in powerBI, for use with a slicer in power bi

It can be achieved depending on the result you ...READ MORE

answered Oct 22, 2018 in Power BI by Hannah
• 14,080 points
1,284 views