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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.