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
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
Community Champion
Community Champion

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
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.