Reputation: 13
I am new in Power BI, I am trying to calculate the percentage based on the rowTotal instead of GrandTotal. for example - with my dataset in excel -
from these raw data I want the calculation like -
Upvotes: 0
Views: 2394
Reputation: 2699
Very simple problem to be solved and accept the solution if helping:
From the original table, create the Total
measure:
Total = SUM(Sheet2[Compliant]) + SUM(Sheet2[Non-Compliant])
Create the Percentage
measure
Percentage = SUM(Sheet2[Compliant]) / (SUM(Sheet2[Compliant]) + SUM(Sheet2[Non-Compliant]))
The outcome using table report
Upvotes: 2