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! Learn more

Reply
dw700d
Post Patron
Post Patron

Dividing items within the same column

Good day all, I am pretty sure this is simple but I just cant figure it out. I  would like to create a measure that divides the sum of Version 1 by the sum of Version 2. How can I accomplish this?

 

Source      Amount   
Version 1      100
Version 1      150
Version 1      200
Version 1      250
version 2      320
version 2      290
version 2      500
version 2      610
1 ACCEPTED SOLUTION
manikumar34
Solution Sage
Solution Sage

@dw700d ,

Try the below.

DIVIDE(CALCULATE(sum(Table[Amount]),Table[Source] ="Version 1"),CALCULATE(sum(Table[Amount]), fTable[Source] ="Version 2"),0 )

 

Try not to use FILTER function which cuases the perfomrance issues.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

2 REPLIES 2
manikumar34
Solution Sage
Solution Sage

@dw700d ,

Try the below.

DIVIDE(CALCULATE(sum(Table[Amount]),Table[Source] ="Version 1"),CALCULATE(sum(Table[Amount]), fTable[Source] ="Version 2"),0 )

 

Try not to use FILTER function which cuases the perfomrance issues.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




amitchandak
Super User
Super User

@dw700d , Please try a new measure

divide(calculate(sum(Table[Amount]), filter(Table, Table[Source] ="Version 1")),calculate(sum(Table[Amount]), filter(Table, Table[Source] ="Version 2")) )

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

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