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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
aglpr
Advocate II
Advocate II

Dividing FIltered Value

Hello,

 

I tried to divide the value of one row to other calculated measure in other table. This the sample matrix below

 

aglpr_0-1649817902660.png

I tried to calculate the success number (measure from other table) divided by costs (from other table (Ads Combined)). Both table connected through the dimension table (Source and Date). The "Cost" row actually has its own value in each row for each source and for each date

 

I tried to create my own measure below but it shows 0.00 result

Success Number divided by Cost = 
calculate(divide([Success Number],sum('Ads Combined'[Cost])))

 

I'm not sure what went wrong or perhaps the code is just wrong.

 

Really appreciate if anyone can shine a light on this.

 

Thank you!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @aglpr 
Nothing wrong. Your measure seems to be fine but the outcome of this division is a very small number that is rounded to zero. just change the format to percentage and increase the number of decimal places. Otherwise, double check and confirm which is the denominator and which is the numerator.

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @aglpr 
Nothing wrong. Your measure seems to be fine but the outcome of this division is a very small number that is rounded to zero. just change the format to percentage and increase the number of decimal places. Otherwise, double check and confirm which is the denominator and which is the numerator.

Dear Tammer,

 

What a silly stupid mistake that I've made. I misplaced the numerator and the denominator.

 

Thank you so much for pointing it out. Feel so dumb right now

 

Thnak you once again!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.