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
philbert119
Regular Visitor

Dividing by Fixed Column in Matrix Issues

I have a matrix that has months (M1, M2, M3) in the column and different campaigns as rows. What I want to produce is a matrix where I can show how the balances have reduced each month from M02. The formula is below.

 
Balance Remaining % = DIVIDE([Balances Sum],CALCULATE([Balances Sum],'Trend'[Month]="M02"),0)
 
It is returning all 0's except for M02 where it is 100% for each campaign.
Example1.png
 
When I adjusted the formula to add ALL, it fixes this problem, but it breaks up the % by the different campaigns and is not isolated to a single row/campaign like I want. See screenshots below for each scenario. Any advice how I can get this to work for each campaign?
 
Example3.png
 
Formulas:
1. Balance Remaining % = DIVIDE([Balances Sum],CALCULATE([Balances Sum],'Trend'[Month]="M02"),0)
Results: Returning 0 for every month except M02 where it returns 100% for all campaigns
 
2. Balance Remaining % = DIVIDE([Balances Sum],CALCULATE([Balances Sum],ALL('Trend'),'Trend'[Month]="M02"),0)
Results: Returning % for all months, but instead of the % being isolated for that one campaign, it is broken up between the different rows/campaigns. I would like to the % to be for each campaign/row.
 
Any help would be appreciated.
 
 
 
Thanks!
Phil
 
 
 

 

 

 



Could anyone help out with this one?
1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @philbert119 ,

could pls provide your pbix file  ? And  Show the final result you want to present. Remember to remove the confidential information.

 

 

 

Best Regard

Lucien Wang

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors