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
Least123
New Member

multiply two columns doens't work - DAX

When I try to multiply two columns the results for line is diferent when I do this with this two columns in a calculator.

Bellow the two columns and  the result when I try to multiply in a dax.

Least123_0-1691616107947.png

 

Dax:

producao_pluma = CALCULATE( [peso_colhido_algodao] *0.41)
r$/kg =  CALCULATE(AVERAGE('f_Resumo Algodão'[R$/kg]))
receita_algodao_pluma2 = producao_pluma]* [r$/kg]
 
 
3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @Least123 

 

You can try the following methods.

r$/kg =
CALCULATE ( AVERAGE ( 'f_Resumo Algodão'[R$/kg] ), ALL ( 'f_Resumo Algodão' ) )

The rest of the formula remains unchanged.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

tamerj1
Super User
Super User

Hi @Least123 
Pleasr try

receita_algodao_pluma2 =
SUMX ( VALUES ( 'Table'[Slicing by Colmumn] ), [producao_pluma] * [r$/kg] )

I tried this. Look at the same.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.