Forum Discussion
Anonymous
1 year agoNot applicable
table not summing
Hi, this is probably something simple... but I can't get it to work... I created a measure to get the cost. For some reason it is not summarizing correctly. This is the Measure Cost2 = var tota...
- Anonymous1 year ago
I solved this at the end... I neede to use the USERPRINCIPAL() function so thats why I needed a measure.
At the ned I created a column field with the above logic and then created a measure referencing the column and using the userprincipla().Below the code I used to reference the column with above logic and added the userprincipal.
Cost =var total_Cost = SUM(Task[Cost_])RETURNif(LOWER(USERPRINCIPALNAME()) = "lblablabvlsa" || LOWER(USERPRINCIPALNAME()) = "blblbl",total_Cost,BLANK())
It worked
Anonymous
1 year agoNot applicable
I solved this at the end... I neede to use the USERPRINCIPAL() function so thats why I needed a measure.
At the ned I created a column field with the above logic and then created a measure referencing the column and using the userprincipla().
Below the code I used to reference the column with above logic and added the userprincipal.
Cost =
var total_Cost = SUM(Task[Cost_])
RETURN
if(LOWER(USERPRINCIPALNAME()) = "lblablabvlsa" || LOWER(USERPRINCIPALNAME()) = "blblbl",total_Cost,BLANK())
It worked