Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello community!
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:
Hi @Raul,
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.
Regards,
Daniel He
Hello @v-danhe-msft,
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:
ColaboradorName | AreaName | GrupoName | ClienteName | TFacturacio | TCost |
AMO | LAB | X06 | AM | 7,89 | 12,5 |
AMO | LAB | X06 | AMB | 0,5 | |
AMO | LAB | X06 | REP | 450,86 | 170,83 |
AMO | LAB | X06 | TRA | 895,18 | 216,67 |
because the result should be as follows:
ColaboradorName | AreaName | GrupoName | ClienteName | TFacturacio | TCost |
AMO | LAB | X06 | AM | 5,81 | 12,5 |
AMO | LAB | X06 | AMB | 0,5 | |
AMO | LAB | X06 | REP | 334,34 | 145,86 |
AMO | LAB | X06 | TRA | 258,12 | 79,17 |
Why are the results of the calculated table incorrect? What do I do wrong?
Thanks!
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])))
Don't work, the result for the TmpFactCOL and TmpCostCOL are blank.
Thanks @themistoklis.
Hello @themistoklis,
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!
Hi @Raul
From what I see, if you calculate
([Cost]*[TmpFactCOL])/[TmpCostCOL]
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.
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |