Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I don't know how to explain this. I have three tables as in the picture.
I need to sum the Agr.Saldo field in the "ApuntesAgrupados" table, at two levels: per Account and per Epigraph (Charter), but in the epigraphs you can repeat "n" times the same account. So, when I apply that the formula
Saldo = SUMX(RELATEDTABLE(ApuntesAgrupados); ApuntesAgrupados[Agr.Saldo])
the amount per account is correct (ratio many to 1) but the total per Epigraph returns me the grand total, and not the sum of the accounts that make it up.
I don't know if I can make myself clear.... If yes, any ideas please?
Solved! Go to Solution.
In this scenario, you have "1 to many" relationship with single direction from Account to ApuntesAgrupados. So dim account can slice ApuntesAgrupados.
However, you also have "1 to many" relationship with single direction from Account to Chapter. When you analyze on Chapter level, it will always take the aggregation of account for each chapter. So in your scenario, you should change this direction into "both", and put chapter under account level.
Regards,
In this scenario, you have "1 to many" relationship with single direction from Account to ApuntesAgrupados. So dim account can slice ApuntesAgrupados.
However, you also have "1 to many" relationship with single direction from Account to Chapter. When you analyze on Chapter level, it will always take the aggregation of account for each chapter. So in your scenario, you should change this direction into "both", and put chapter under account level.
Regards,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 64 |