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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Syndicate_Admin
Administrator
Administrator

Problem with totals in measurements

Hello good day I am having a problem with the totals of a measure, I have implemented the following formula:

Lbs Proyec Resp. Text = var _Resp1=SUMMARIZE(BaseText2,BaseText2[Color],BaseText2[SupplierReal],"_Valor1",[lbs Proyec Resp Textilera])
RETURN IF(HASONEVALUE(BaseText2[Color]),[lbs Proyec Resp Textilera],SUMX(_Resp1,[_Valor1]))
But the value of the total is still wrong
I have applied the same formula principle in other columns and in these it does work correctly, so it seems to me that the problem is occurring when it finds a value in 0
fsanchez79_0-1722637429419.png

In the image I have marked 2 columns in green where the formula is applied but it has a data at zero and returns an incorrect value, while the one marked in yellow works without problem

I will appreciate it if you help me to orient myself to a solution

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Syndicate_Admin 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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