cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
reetu_k Frequent Visitor
Frequent Visitor

Display row value as percentage of another row

I am trying to get PowerBI to display percentage of each row. In the example below I need values of (FailedRequests/TotalRequests) * 100 for each scenario. How can that be done ? 

 

ScenarioFailedRequestsTotalRequestsFailure Rate
1203812155791670 
2624808485370390 
3254167207866254 
4664216554088592 
5272122237420471 
6376757332183915 
7364878324435318 
8194305173150964 
9368061331386374 
10368316338115418 
11375209365627412 
12374385379569936 
13114799126844354 
14105820161852867 
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Display row value as percentage of another row

@reetu_k add new column 

 

Failure Rate = 
DIVIDE(Table1[FailedRequests], Table1[TotalRequests])

go to modelling page and select this new column "failure rate" and change it to %.

 

In above expression change table name and field name as per your data model.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut! Connect with me on Linkedin






2 REPLIES 2
Super User
Super User

Re: Display row value as percentage of another row

@reetu_k add new column 

 

Failure Rate = 
DIVIDE(Table1[FailedRequests], Table1[TotalRequests])

go to modelling page and select this new column "failure rate" and change it to %.

 

In above expression change table name and field name as per your data model.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut! Connect with me on Linkedin






reetu_k Frequent Visitor
Frequent Visitor

Re: Display row value as percentage of another row

Thank you @parry2k - this works beautifully