Forum Discussion

CiuCiCiao's avatar
CiuCiCiao
Helper I
9 years ago
Solved

Assistance needed with formula

Hi Guys, As in the table below I have Customer ID for each Service and ha date. I concatenate Customer ID and Date to have a unique Key of Entry / Admission. I need to spread Front Office cost by ...
  • TheOckieMofo's avatar
    9 years ago

    You need to get familiar with the early function. It's one of those functions that I'm not totally sure why it works, I just know it does. So let's learn by doing.

     

    So you can use this function to create a count of the rows that have each unique key. The syntax would be:

     

    =CALCULATE(COUNTA([KEY]),FILTER('TABLENAME','TABLENAME'[KEY]=EARLIER('TABLENAME'[KEY])))

     

    This would be the denominator in your equation, so you could just put a "1/" in front of the above equation to get your proper value.

     

    That should work for you. Let me know.