I have this problem with a sum of a group:
The sum of the Rep.AbonamentCOL rows for the group X06 must be 598.27, not 446.00
The measures used in the table are:
From what I see, if you calculate
with the totals that your table shows for those three parameters, the result is indeed 446, so it looks correct.
Yes, this is another mistake. The result for each row it's correct and, if you aplied the measure for the total group it's correct too but I want that the total group shows the sum of the rows, no the result of the measure. It's possible? I thought that this was the default calculation of the table.
Thanks @AlB for your post.
Can you change your measures, to these ones and see if they work?
TmpFactCOL = SUMX(VALUES (Colaboradors[Colaborador]) ; CALCULATE(SUM(TasquesColaboradors[Facturacio]))) TmpCostCOL = SUMX(VALUES (Colaboradors[Colaborador]) ; CALCULATE(SUM(TasquesColaboradors[Cost])))
The workspace I can't share because it's a very complex and big but I can give you more information. This is the database model of this table:
The Tareas table it's a view of two tables: one with the Hores and Cost values and the other with the Facturacio values.
Tha table shows the ColaboradorName (AMO), AreaName (LAB), GrupoName (X06) and ClienteName (AM, AMB, REP,..) and has assigned the following filters:
ColaboradorName = AMO, AreaName = LAB.
I hope that with these data I can help you a little more. Thank you!
Could you please just share a simple sample to have a test? Due to the measure in different condition is different, I suggest just share a sipmle data that may have the same problem, so I could test for you.
As I said in another post. the data model it's a very complex and big and I can't shared, sorry very much.
I'm trying another way to get the amounts I need by creating a calculated table. I use the following function to create the table:
TotalsRepartiment = ADDCOLUMNS(SUMMARIZE(TasquesColaboradors;Colaboradors[Colaborador];Arees[Àrea];GrupsEmpreses[Grup Empresa];Clients[Cod_ cliente]);"TFacturacio";[Rep.AbonamentCOL];"TCost";[Cost])but the result is not the expected:
because the result should be as follows:
Why are the results of the calculated table incorrect? What do I do wrong?