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

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

Reply

Multiplication of 2 columns based on another column

HI,

 

I have 3 columns named "Reporting Currency Amount" ,"Markup Rate" and "Reporting Period"

 

Reporting Currency has Decimal values in $, Markup rate is mostly % values (eg. 5%, 10%...) and Reporting Period has only 2 values - Prior Period and Current Period.

 

I want to create 2 measures -

 

Used Rate PP and Used Rate CP -

The calculation expected is Used Rate PP = [(amount1*rate1)+....+(amount10*rate10)]/[amount1+...+amount10] for all Reporting period "Prior Period " and same for Used Rate CP.

akashpadmakumar_0-1651082089294.png

 

Sample Data as above, Please help 🙂

@PaulDBrown @johnt75 

1 ACCEPTED SOLUTION
Shishir22
Solution Sage
Solution Sage

Hello @akashpadmakumar ,

 

I have given table name as DATA.

 

Please try -

Used Rate PP = 
VAR _Num = SUMX(FILTER(Data,Data[Reporting Period]="Prior Period"),Data[Reporting Currency Amount]*Data[Markup Rate])
Var _Den= SUMX(FILTER(Data,Data[Reporting Period]="Prior Period"),Data[Reporting Currency Amount])
return
DIVIDE(_Num,_Den,BLANK())

 

Used Rate CP = 
VAR _Num = SUMX(FILTER(Data,Data[Reporting Period]="Current Period"),Data[Reporting Currency Amount]*Data[Markup Rate])
Var _Den= SUMX(FILTER(Data,Data[Reporting Period]="Current Period"),Data[Reporting Currency Amount])
return
DIVIDE(_Num,_Den,BLANK())

 

Please mark it as solution if it solves your issue. Kudos are also appreciated.

 

Cheers,
Shishir Shrivastava

Cheers,
Shishir

View solution in original post

2 REPLIES 2

Thanks man 🙂
Rockstar

Shishir22
Solution Sage
Solution Sage

Hello @akashpadmakumar ,

 

I have given table name as DATA.

 

Please try -

Used Rate PP = 
VAR _Num = SUMX(FILTER(Data,Data[Reporting Period]="Prior Period"),Data[Reporting Currency Amount]*Data[Markup Rate])
Var _Den= SUMX(FILTER(Data,Data[Reporting Period]="Prior Period"),Data[Reporting Currency Amount])
return
DIVIDE(_Num,_Den,BLANK())

 

Used Rate CP = 
VAR _Num = SUMX(FILTER(Data,Data[Reporting Period]="Current Period"),Data[Reporting Currency Amount]*Data[Markup Rate])
Var _Den= SUMX(FILTER(Data,Data[Reporting Period]="Current Period"),Data[Reporting Currency Amount])
return
DIVIDE(_Num,_Den,BLANK())

 

Please mark it as solution if it solves your issue. Kudos are also appreciated.

 

Cheers,
Shishir Shrivastava

Cheers,
Shishir

Helpful resources

Announcements
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 Kudoed Authors