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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Automatic sum issues

Hello,

 

I have a problem with the automatic sum in the table below (even in graphique) 

its sums the two last lines and after that it substract the first one only for the second columns 

FerhatLyes_2-1640171423112.png

 

 do you have any idea please to fix the issue 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

It seems like a common measure total issue, does the sorties formula work with filters or special conditions? If that is the case, you can take a look at Greg's blog to know how to fix this:

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
ALLUREAN
Solution Sage
Solution Sage

Hi @Anonymous 

 

Would you copy the measure code for Entrées & Sorties?

 

 




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Anonymous
Not applicable

HI @Anonymous,

It seems like a common measure total issue, does the sorties formula work with filters or special conditions? If that is the case, you can take a look at Greg's blog to know how to fix this:

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

I found the problème guys thank you .  the formula was 

Sorties =
abs(CALCULATE(
(sum(TABLE_DE_FAIT_MVT[Valeur MVT signée])),
DIM_TYPE_MVT[SENS_COMPTABLE] in {"S"})
)
the pissue was with the abs function that first sum all vlaues and after that dot the abs.
 
the solution i creat an agregation first of the abs vlaues of each rows. 
 
Entrées/Sorties = SUMMARIZE(TABLE_DE_FAIT_MVT,TABLE_DE_FAIT_MVT[CODE_MAGASIN],TABLE_DE_FAIT_MVT[Activite],TABLE_DE_FAIT_MVT[Centre],TABLE_DE_FAIT_MVT[Etablissement],TABLE_DE_FAIT_MVT[DEPARTEMENT],TABLE_DE_FAIT_MVT[PERIODE_COMPTABLE],
"E",CALCULATE(
(sum(TABLE_DE_FAIT_MVT[Valeur MVT signée])),
DIM_TYPE_MVT[SENS_COMPTABLE] in {"E"}),
"S", CALCULATE(
(sum(TABLE_DE_FAIT_MVT[Valeur MVT signée])),
DIM_TYPE_MVT[SENS_COMPTABLE] in {"S"}))

 

amitchandak
Super User
Super User

@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandakth probleme is with the first line if don't select it ( have only the the two lines ST074, ST075) the total is correct but if filter by selecting the ST073, ST074 and ST075) the total is flase of the last column

Centre   Entrées        Sorties

ST073    128054,2    83364,26
ST074    101311,34    100395,16
ST075     56262,19     77785,65

 

 

FerhatLyes_0-1640175639756.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.