Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
SUM((PFIINVESTISSEMENT -
(ENVMTINITIAL-VSTD_ENVMTDISPO))*DPPMTPART)
When I try to apply it in DAX :
KPI1 :=SUM(
DPPMTPART *
([PROP_MtDemandeFin] -(PFIINVESTISSEMENT -
(ENVMTINITIAL-VSTD_ENVMTDISPO) )
)
I have this error :
The SUM function only accepts a column reference as an argument.
Solved! Go to Solution.
You need SUMX iterator function.KPI1 :=SUM(
SUMX('Table', [DPPMTPART] * ([PROP_MtDemandeFin] -([PFIINVESTISSEMENT] - ([ENVMTINITIAL]-[VSTD_ENVMTDISPO]))))
Yes, SUM just Adds all the numbers in a column.
See this link:
https://docs.microsoft.com/en-us/dax/sum-function-dax
You can use SUMX.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
You need SUMX iterator function.KPI1 :=SUM(
SUMX('Table', [DPPMTPART] * ([PROP_MtDemandeFin] -([PFIINVESTISSEMENT] - ([ENVMTINITIAL]-[VSTD_ENVMTDISPO]))))
User | Count |
---|---|
98 | |
91 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |