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,910 points
274 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
• 18,070 points

Related Questions In Power BI

0 votes
1 answer

How to rename a column using DAX in Power BI?

Hi Ramya, I found these two function that ...READ MORE

answered Aug 21, 2019 in Power BI by anonymous
• 32,460 points
4,340 views
0 votes
0 answers
0 votes
1 answer

Calculate GB Using DAX in Power BI

Hi, @Vnk You can go through this regarding ...READ MORE

answered Jun 30 in Power BI by Gitika
• 33,150 points
102 views
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,200 points
4,470 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,200 points

edited Oct 11, 2018 by Kalgi 557 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
• 51,890 points
232 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, 2019 in Power BI by VNK
14,365 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
• 51,890 points
20,653 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
• 18,070 points
109 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
• 18,070 points
3,909 views