Is there any way or structure for me to access the value of a dimension from a Metric?
Ex. I have a Number metric that has ARR dimensioned by Customer ID and Month. I would like to find the first month a customer had an ARR value. How would I be able to access the value of the Dimension. When using firstnonblank I only am able to get the value of the Metric and cannot access any of the dimension attributes.
Accessing Dimension Value From a Metric
Best answer by Elliot
Hi
Good question - the easiest way to return an item of a dimension from a metric (instead of the value) is to use an IF Statement. Since you’re only interested in the month value of the first month with values we can use the formula below:IF ( Isdefined( ARR Metric), Month)[remove firstnonblank: Month]
Your Target metric should have only the Customer dimension.
In a general where you want to return a dimension’s item and keep all dimensions within the block you would do:
IF ( [Insert desired logic], Dimension)
The formula above says “IF there logic statement is true, then return the Dimension’s item, otherwise blank.
I hope the above helps, let me know if you have further questions
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


