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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.