cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Ignore grand total percent getting summed up

Hi Forum,

I'm trying to get the grand total of the percentage columns but PowerBi is summing up the percent values instead of actual percent. Attached is what I need vs what powerbi is showing.

1 ACCEPTED SOLUTION
Memorable Member

@manoj_vyx the complete updated measure:

Measure = IF( SUM(Query1[actual])= SUM(Query1[commited]) , 0,
IF(SUM(Query1[commited]) = 0,1,DIVIDE(SUM(Query1[actual]) - SUM(Query1[commited]), SUM(Query1[commited]), 0)))

BBF

7 REPLIES 7
Regular Visitor

When calculating the %Delta change the total is getting summed up. Instead of actual change.
When you see the total 8 --> 56 should be 600% but it's showing up as 1600% all the 100% getting summed up instead of correct calculation

Memorable Member

@manoj_vyx Yes, because the calculated column evaluates the expression row by row and then the default sum of power bi returns the sum of the column, in this case 1600. Try to use a measure instead of a column:

Measure = DIVIDE(SUM(Query1[actual]) - SUM(Query1[commited]), SUM(Query1[commited]), 0)
The total is correct now:

BBF

Memorable Member

@manoj_vyx the complete updated measure:

Measure = IF( SUM(Query1[actual])= SUM(Query1[commited]) , 0,
IF(SUM(Query1[commited]) = 0,1,DIVIDE(SUM(Query1[actual]) - SUM(Query1[commited]), SUM(Query1[commited]), 0)))

BBF

Regular Visitor

Thanks, this worked for me.

Memorable Member

@manoj_vyx Hi! can you paste sample data and the measures you are actually using in the pbix to calculate the %?

BBF

Regular Visitor
 ID commited actual 1234 0 3 1235 0 2 1236 0 3 1237 0 3 1238 0 3 1239 0 8 1240 0 2 1241 0 1 1242 0 1 1243 0 5 1244 0 2 1245 0 1 1246 0 2 1247 0 2 1248 0 2 1249 0 8 1250 0 0 1251 0 0 1252 3 3 1253 0 0 1254 0 0 1255 0 0 1256 0 0 1257 0 0 1258 0 0 1259 0 0 1260 0 0 1261 0 0 1262 0 0 1263 0 0 1264 0 0 1265 0 0 1266 0 0 1267 0 0 1268 5 5 1269 0 0 1270 0 0 1271 0 0 1272 0 0 1273 0 0 1274 0 0 1275 0 0 1276 0 0 1277 0 0 1278 0 0 1279 0 0 1280 0 0 1281 0 0

Hi @BeaBF , Here is the sample data. Also, attaching the calculation here. I am using column.

% Delta Change = IF(Query1[actual] = Query1[committed], 0,

IF(Query1[committed] = 0,1, ([actual]-[committed])/[committed]))
Memorable Member

@manoj_vyx ok, perfect. Now explain to me the problem on this data.

BBF

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.