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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TomBelgium
Helper I
Helper I

Power BI matrix, add a filtered percentage as column

Hi all,

 

i have a table with invoice info per sector & year which I present in a matrix.
The rows are sector, columns are total per sector in amount and percentage. For percentage, I added a measure 

Procentueel = DIVIDE (
SUM ( PBIInvoice_Info[Total_Invoiced] ),
CALCULATE (
SUM (PBIInvoice_Info[Total_Invoiced] ),
ALL ( PBIInvoice_Info[SectorRFID] )
),
0
)
 
However, I also have a boolean value NewCustomer on which I also want to show a percentage. 
So per row, you get the sector, the total invoiced, percentage total invoiced sector vs total and a percentage of total invoiced sector which is new customer vs total
I don't see how to calculate that last one. 
Any tips, ideas?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TomBelgium,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They are working on different levels and you can't use the child to affect its parent levels.

Notice: the data level of power bi.

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @TomBelgium,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They are working on different levels and you can't use the child to affect its parent levels.

Notice: the data level of power bi.

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

TomBelgium
Helper I
Helper I

Anyone any ideas?

amitchandak
Super User
Super User

@TomBelgium ,

Procentueel = DIVIDE (
CALCULATE (SUM ( PBIInvoice_Info[Total_Invoiced] ), filter(PBIInvoice_Info, PBIInvoice_Info[NewCustomer])),
CALCULATE (
SUM (PBIInvoice_Info[Total_Invoiced] ),
ALL ( PBIInvoice_Info[SectorRFID] )
),
0
)

 

or

 

 

Procentueel = DIVIDE (
CALCULATE (SUM ( PBIInvoice_Info[Total_Invoiced] ), filter(PBIInvoice_Info, PBIInvoice_Info[NewCustomer])),
CALCULATE (
SUM (PBIInvoice_Info[Total_Invoiced] ),
filter(ALL ( PBIInvoice_Info[SectorRFID] ), PBIInvoice_Info[NewCustomer])
),
0
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you very much. In the matrix, I still don't get the result I am expecting.

 

I have following data

- Project A, 40 K, sector A, status new

- Project B, 40 K sector A, status new

- Project C, 151 K sector A, status old

 

All projects over all sectors are 3,888 K.

 

The percentage of the sector is fine at 6.04%.

However, the percentage  of new projects should be 37% (80 K of 231K) but I can't get that result. I used the three options I am having there (represent as total of column, total of row or total of end result. So I guess I am still doing something wrong.

The result I 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.