Forum Discussion
dimension in calculated measure
- 9 years ago
According to the error that you are getting and that you are doing this in a measure, then you need to use an aggregator like:
Measure = if(MAX('table'[dim_name]) = "dim1",((if(MAX('table'[dim_name]) = "dim2",'table'[measure]))/(if(MAX('table'[dim_name]) = "dim3",'table'[measure])))/12,5)
Yes you can but you have to follow DAX syntax. Can you post your formula and sample data and what you are trying to accomplish?
Thanks for quick response.
I am trying to implement something similar to this:
if('table'[dim_name] = "dim1",((if('table'[dim_name] = "dim2",'table'[measure]))/(if('table'[dim_name] = "dim3",'table'[measure])))/12,5)
'/' does not work here.
Thanks.
- Greg_Deckler9 years ago
Community Champion
According to the error that you are getting and that you are doing this in a measure, then you need to use an aggregator like:
Measure = if(MAX('table'[dim_name]) = "dim1",((if(MAX('table'[dim_name]) = "dim2",'table'[measure]))/(if(MAX('table'[dim_name]) = "dim3",'table'[measure])))/12,5) - v-ljerr-msft9 years ago
Microsoft Employee
Hi ad_nan,
Have you tried the measure provided by Greg_Deckler above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?
If you still have any question on this issue, feel free to post here. :smileyhappy:
Regards