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
Anonymous
Not applicable

Rate calculation across multiple months

Hello all,

 

I am calculating Rate % = Sum(Table1(Amt))/Sum(Table2(Amt))

 

I am using a mesuare to calculate this Rate %. The formula is - Rate%= IFERROR([A]/[B], BLANK())

where [A] is a measure = Sum(Table1(Amt))

[B] is a measure = Sum(Table2(Amt))

 

Now this is giving the right result. But if I select multiple months using month slicer, then it will calculate rate as

 Rate %= Sum(Table1(Amt)) for Jan + Sum(Table1(Amt)) for Feb/ Sum(Table2(Amt)) for Jan + Sum(Table2(Amt)) for Feb

 

what I want is Rate 1= Sum(Table1(Amt)) for Jan / Sum(Table2(Amt)) for Jan

Rate 2= Sum(Table1(Amt)) for Feb / Sum(Table2(Amt)) for Feb

 

Final Rate %= (Rate 1 + Rate 2)/2

 

I am new to power bi and dax so apologies if the question sounds silly.

 

Thanks in advance

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

In your resource date, there are date column in Table1 and Table2? And if there is relationship between the table?

I try to reproduce your scenario using the following sample table.

2.PNG

 

I create measure like, create a month in Table1 and a slicer inluding Table1[month], it return expected result in screenshot below.

rate = SUM(Table1[Amt])/SUM(Table2[Amt])


1.PNG


Please let me know if you have any question. The attached file is my sample data.

Best Regards,
Angelia

Anonymous
Not applicable

Hi @v-huizhn-msft,

 

There is no direct relationship between the two tables. The two tables are given relationship with a Date Table. The Date Table is also used in the slicer. 

Hi @Anonymous,

I got it, do you try the solution, and it didn't work? Could you please post your .pbix for analysis?

Best Regards,
Angelia

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!

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.