Solved

Aggregating by sum for Months

  • 3 August 2022
  • 4 replies
  • 34 views

Badge
  • New Pigmenteer
  • 7 replies

Dears,

I would like to create a metric where I have the MRR BE, coming from the transaction list Requests MRR BE, summed by the QuickbooksId and by the Month, both of which are mapped as a dimension in my transaction list.

I have the following formula:

 

'Requests MRR BE'.'MRR BE'[BY:'Requests MRR BE'.QuickbooksId,'Requests MRR BE'.Month]

 

It works for QuickbooksId (ID number) , but it does not sum by Month. It ends up giving me the total per QuickbooksId (ID number) for every month of every year instead of allocating the sum of the ID per month of the year.

 

Thank you very much in advance!

 

Best,

Jose

 

icon

Best answer by francois 3 August 2022, 18:27

View original

4 replies

Userlevel 4
Badge +4

Hi Jose,

This looks like an issue of type of your properties/metric.

Can you check & tell us:

  • the dimension used in your metric where you type the formula ?
  • the type of the 'Requests MRR BE'.Month property

You can check that in the formula bar by hovering the mouse on them

Userlevel 4
Badge +3

Hi Jose!
I’d bet on the Month in your metric structure might no being the same as the one in your transaction.

Can you try opening your formula in a formula playground set to automatic structure? This should give you the right results. If this works, you can either create a new metric from there or have a look at your different Month dimensions.

I hope this helps you!
François

Badge

Hi Francois!

Thanks for the reply! It worked from the formula playground:

However, I still do not understand why it worked from the formula playground and not directly from the metric?

 

Also what do you mean by “on the Month in your metric structure might no being the same as the one in your transaction”, I do not understand how could they be different? its a date dimension (Dimension (Month) property from List "Requests MRR BE")

 

Userlevel 4
Badge +3

I think you might have two different calendars, e.g. one in your application and one in a shared app such as a hub. Here’s an example on an application I have. You can see the difference as one is shared (double disks next to the block’s name, name of the source application below) and one is not.

 

Reply