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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.