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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Measured Total Problem.

Dear All,

 

When I searched about problems that is related to measured total problem, I have seen many solutions but that does not work for my problem. Although I have wrote a formula based on a logic ( this works well.) total sum of measured  formula is wrong. As you see below, "brüt cb.satış" column's total is 2,006 but it should have been 2773. Can you help me ?

 

formula that I wrote to fix wrong total but does not work

image.png

image.png

Best Regards.

 

 
 
 
 
2 ACCEPTED SOLUTIONS

sorry, I obviously did not manage to post in the code in my previous post. Here it is:

measure =
IF (
    HASONEVALUE ( [code] ),
    [brut],
    SUMX ( SUMMARIZE ( 'table', [code], [surname] ), [brut] )
)

View solution in original post

and just a little tip, when sharing code(and data), paste the code/data instead of screenshots

View solution in original post

5 REPLIES 5
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Anonymous,

 

without knowing the code for [brut cb satis], it's difficult to suggest an exact solution.

 

You could try to rewrite your code to this:

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Anonymous
Not applicable

Hi @sturlaws 

 

Just for your info ,brüt cb satış calculation works well except total sum.

 

Code as follow :

 

image.png

sorry, I obviously did not manage to post in the code in my previous post. Here it is:

measure =
IF (
    HASONEVALUE ( [code] ),
    [brut],
    SUMX ( SUMMARIZE ( 'table', [code], [surname] ), [brut] )
)
Anonymous
Not applicable

@sturlaws  thank you so much. problem solved

and just a little tip, when sharing code(and data), paste the code/data instead of screenshots

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.