Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
KN8
Frequent Visitor

Multiple Totals at the bottom OR Custom rows to Calculate % in a matrix table

Hi,

I have a project where I'm converting excel forecast model into pbi. Below is my expected output combined using two tables :

PRODUCTJANFEBMARAPRJUNTotal
# PRODUCTS DEPLOYED1001502002503001000
# BILLED 75100150200250775
# PAID5075100150200575
% of billed75%67%75%80%83%78%
% of paid50%50%50%60%67%58%
% paid from billed67%75%67%75%80%74%

 

In the above example I'm trying to calaculate the % based on how many were delpoyed were billed , deployed were paid, billed to paid. Below are the formulas :

%Billed = # of billed/ # Products deployed

%Paid= # of paid/ # Products deployed

% paid from billed = # of paid/ # of billed

 

SAMPLE DATA :

Table 1 : 

PRODUCTID
# PRODUCTS DEPLOYEDSDFC1
# PRODUCTS DEPLOYEDSDFC2
# PRODUCTS DEPLOYEDSDFC3
# PRODUCTS DEPLOYEDSDFC4
# PRODUCTS DEPLOYEDSDFC5
# PRODUCTS DEPLOYEDSDFC6
# BILLED SDFC1
# BILLED SDFC2
# BILLED SDFC3
# PAIDSDFC1
# PAIDSDFC2

 

Table 2: 

DATEID
JANSDFC1
JANSDFC2
FEBSDFC3
FEBSDFC4
MARSDFC5
APRSDFC6

I'm trying to achieve this using Matrix visual in power bi. 

I achieved calculating %Billed  with below two measures . Not sure how to add two more calacualtions %Paid and % paid from billed.

[Measure_1] =DISTINCTCOUNT('Table1'[ID])

[Measure_2]

 if(HASONEFILTER('Table1'[ PRODUCT ]),
               FORMAT([Measure_1],"General Number"),
                FORMAT(CALCULATE([Measure_1],'Table1'[ PRODUCT ]="# BILLED ")
                               /
                             CALCULATE([Measure_1],''Table1'[ PRODUCT ]="# PRODUCTS DEPLOYED"),"Percent")
 
)

 

Any help and guidance is highly appreciated.

 

Thanks

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

In your matrix visual enable "show values on rows". Then you can add as many measures as you want to act as "totals"

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

In your matrix visual enable "show values on rows". Then you can add as many measures as you want to act as "totals"

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors