Forum Discussion
SUM ( RELATED () ) dont work
- Anonymous6 years ago
powerbityro
You cannot use related or relatedtable after SUM. Simply remove RELATED will work.
The correct way of using RELATED AND RELATEDTABLE is when you restrict you context to a table and you want referent column from another related table. e.g. Revenue = TableA[QTY] * RELATED(TableB[Sales Price])
RELATED/RELATEDTABLE: https://theexcelclub.com/dax-power-pivot-power-bi-ssas-related-and-relatedtable/Best,
Paul.
3 Replies
- AnonymousNot applicable
powerbityro
You cannot use related or relatedtable after SUM. Simply remove RELATED will work.
The correct way of using RELATED AND RELATEDTABLE is when you restrict you context to a table and you want referent column from another related table. e.g. Revenue = TableA[QTY] * RELATED(TableB[Sales Price])
RELATED/RELATEDTABLE: https://theexcelclub.com/dax-power-pivot-power-bi-ssas-related-and-relatedtable/Best,
Paul. - parry2kSuper User
powerbityro you cannot use RELATED function in SUM
you can do simple SUM on Table2[CDE] and it would work.
- Greg_DecklerCommunity Champion
See if SUMX meets your needs. Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490