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
Aucesar
Helper III
Helper III

Sum is OK, but If I multiple it gives me the wrong value

Hi,

I did this calculation and it´s ok:

Measure =
SWITCH(
 SELECTEDVALUE( Refugo[Processo]),
 "Manual", IF ([MediaRefugoMoldador] <0.01,1, IF([MediaRefugoMoldador] >=0.01 && [MediaRefugoMoldador] <=0.02,0.5, IF([MediaRefugoMoldador]  >0.0201, 0))),
 "Cold box", IF ([MediaRefugoMoldador]  <0.01,1, 0),
 "Squizzer", IF ([MediaRefugoMoldador] <0.01,1, IF([MediaRefugoMoldador] >=0.01 && [MediaRefugoMoldador] <=0.02,0.5, IF([MediaRefugoMoldador]  >0.0201,0)))
)
If I try to multiple it by a value using this way, numbers come wrong, in this case a solution for sure would be super nice, but an explanation of why this is happening will help me in the undestand what is going on behind the DAX scenes. Thanks.


Measure2 =
SWITCH(
 SELECTEDVALUE( Refugo[Processo]),
 "Manual", IF ([MediaRefugoMoldador] <0.01,1*[PremioMesManual], IF([MediaRefugoMoldador] >=0.01 && [MediaRefugoMoldador] <=0.02,0.5*[PremioMesManual], IF([MediaRefugoMoldador]  >0.0201, 0))),
 "Cold box", IF ([MediaRefugoMoldador]  <0.01,1*[PremioMesColdBox], 0),
 "Squizzer", IF ([MediaRefugoMoldador] <0.01,1*[PremioMesSquizzer], IF([MediaRefugoMoldador] >=0.01 && [MediaRefugoMoldador] <=0.02,0.5*[PremioMesSquizzer], IF([MediaRefugoMoldador]  >0.0201,0)))
)

Sample data here https://1drv.ms/u/s!AktM4_8VYySOiJNesEmXB9u11SPH3A?e=WUlZvp
1 REPLY 1
Aucesar
Helper III
Helper III

Hi Community, any suggestion?

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.

Top Solution Authors
Top Kudoed Authors