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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

wrong total sum

Why total sum is wrong?

 

2020-06-17_143258.png

1 ACCEPTED SOLUTION

Solved.

NewMeasure=
SUMX(VALUES(PercentTable[CODE]),[4thcolMeasure])

 

View solution in original post

9 REPLIES 9
vanessafvg
Super User
Super User

please provide your calculation, and can you show the whole table? screen shot of you data helps too otherwise there is no way of knowing




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Measure for 4th ( wrong) column
Col1-Col2*DinamicPercent

DinamicPercent =
IF(MAX(PercentTable[%])=0,[SomeProcentFromMeasure],MAX(PercentTable[%]))

SomeProcentFromMeasure =
Var Period1 = 
CALCULATE (
[s],
DATESINPERIOD ( 'Date'[Date], LASTDATE ( 'Date'[Date] ), -12, MONTH ),
ALL(Table1),
ALL(Table2),

ALL(Table3)
)

Var Period2 = 
CALCULATE (
[z],
DATESINPERIOD ( 'Date'[Date], LASTDATE ( 'Date'[Date] ), -12, MONTH ),
ALL(Table1),
ALL(Table2),

ALL(Table3)
)
Return
DIVIDE(Period1,Period2)

 

2020-06-17_154947.png

 

PercentTable
Code | %
Code1 | 0%
Code2 | 5%
Code3 | 5%

thanks thats helpful but i can't see the header columns on your screen shot, what is the calculation for [s] and [z]




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




It is to complex for s and z calculation, so say it Deb - cred from Table10

you need to provide all the calculations, can't see what the problem is without understanding what you are doing.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




should i post all 100 tables and 200 measures? 

Hi @Analitika ,

 

It seems to be the issue of measure total, please refer to  https://finance-bi.com/power-bi-totals-incorrect/

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Solved.

NewMeasure=
SUMX(VALUES(PercentTable[CODE]),[4thcolMeasure])

 

i asked you what the calculations are for these measures, its impossible to help you without all the information

 

Capture.JPG

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.