Skip to main content
Solved

Is there a way to bring data from a metric to a dimension property?

  • February 7, 2023
  • 1 reply
  • 132 views

Forum|alt.badge.img+2

I have a metric containing data that I would like to associate to a dimension list property, the LASTNONBLANK formulae is not working.

Best answer by francois

Hi Khadija,

Typically, any formula that produces a one-dimension structure can be used in making a property in a dimension. You can use the Formula Playground in Automatic Structure and work towards a result that has a structure of one dimension. You’ll then be able to use that formula in a property of the same format.

For dimension-format items, we typically use the LASTNONBLANK aggregator to get rid of additional dimensions.

For example, if I have a metric that describes in which country my employees are in any given month (Country metric by Employee x Month), I can use the following formula to create a Last Country in my employee dimension: 'Country by Employee and Month'[REMOVE LASTNONBLANK: Month]

The formula needed and its result will entirely depend on your model though.

Is there an error message that you get I can help you with? If you share the structure of your source metric, I can probably help you get to a working formula.

 

1 reply

francois
Employee
Forum|alt.badge.img+13
  • Employee
  • Answer
  • February 7, 2023

Hi Khadija,

Typically, any formula that produces a one-dimension structure can be used in making a property in a dimension. You can use the Formula Playground in Automatic Structure and work towards a result that has a structure of one dimension. You’ll then be able to use that formula in a property of the same format.

For dimension-format items, we typically use the LASTNONBLANK aggregator to get rid of additional dimensions.

For example, if I have a metric that describes in which country my employees are in any given month (Country metric by Employee x Month), I can use the following formula to create a Last Country in my employee dimension: 'Country by Employee and Month'[REMOVE LASTNONBLANK: Month]

The formula needed and its result will entirely depend on your model though.

Is there an error message that you get I can help you with? If you share the structure of your source metric, I can probably help you get to a working formula.