Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am having question. I have situation when in one case sum of rows values in table is correct in another case when I adding new column in visual, then appears new row and sum of rows becomes incorrect. How I could fix it?
6264,00+33,71+34,80 is not equal 6298,75 This comes 3 lines if I add OBJ_KOD column.
6264,00+34,80 is equal 6298.. Here getting two lines without adding OBJ_KOD column. in table
So how to resolve this issue?
total/hs_tb =
IF (
ISINSCOPE ( tb[OPALGA_MEN] ),
DIVIDE ( [total_sum_tb], [sum_hs_tb] ),
VAR summaryTable =
ADDCOLUMNS (
VALUES ( tb[OPALGA_MEN] ),
"@val", DIVIDE ( [total_sum_tb], [sum_hs_tb] )
)
RETURN
SUMX ( summaryTable, [@val] )
)
Here is a measure for a last column in visual.
Solved! Go to Solution.
Hi, @Analitika
This part of your formula should be problematic.
VAR summaryTable =
ADDCOLUMNS (
VALUES ( tb[OPALGA_MEN] ),
"@val", DIVIDE ( [total_sum_tb], [sum_hs_tb] )
)
Depending on the data you provide, the dates are the same and such a result will appear.
So the result of summation is not quite right.
You can try the following methods.
total/hs_tb =
Var _table=SUMMARIZE('Table','Table'[Date],'Table'[sum1],"val",DIVIDE([total_sum_tb],[sum_hs_tb]))
Var _sum=SUMX(_table,[val])
Return
IF(ISINSCOPE('Table'[Date]),DIVIDE([total_sum_tb],[sum_hs_tb]),_sum)
At this time, whether you add OBJ_KOD column or not, the result will not change.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Analitika
This part of your formula should be problematic.
VAR summaryTable =
ADDCOLUMNS (
VALUES ( tb[OPALGA_MEN] ),
"@val", DIVIDE ( [total_sum_tb], [sum_hs_tb] )
)
Depending on the data you provide, the dates are the same and such a result will appear.
So the result of summation is not quite right.
You can try the following methods.
total/hs_tb =
Var _table=SUMMARIZE('Table','Table'[Date],'Table'[sum1],"val",DIVIDE([total_sum_tb],[sum_hs_tb]))
Var _sum=SUMX(_table,[val])
Return
IF(ISINSCOPE('Table'[Date]),DIVIDE([total_sum_tb],[sum_hs_tb]),_sum)
At this time, whether you add OBJ_KOD column or not, the result will not change.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
85 | |
60 | |
45 | |
41 | |
39 |