Forum Discussion

pratafran's avatar
pratafran
Helper III
6 years ago
Solved

Backlog evolution at month end

Hello Comunity!

 

I'm trying to figure out how to calculate the backlog of documents created (invoices) that still were not submitted to customer at month end and see it in a chart to monitor the evolution month to month BUT also be able to select any month and see in a table the list of invoices that are part of that backlog.

 

My current solution is to do it in excel with formulas generateing the "backlog database" for each month, and appending each month on a long database with the corresponding backlog month column.

 

The logic for each month end (e.g. 31/Jan/2010) is:

If the document was already submitted (Status: Y), it is backlog at month end if it was invoiced before or in the backlog date and submitted after that date.

If the document was still not submitted (Status: N), it is backlog at month end if it was invoiced before or in the backlog date.

 

Data:

Invoice Number

Invoice Volume

Invoice Date

Submission Date (never is black, if not submitted it has the estimated submission date, otherwise, the actual one)

Status (Y= Submitted, N=Not submitted)

 

Example in excel attached. My desired solution would be to avoid appending and get it with calculations but I'm not being able to reach a solution. Second option is maybe replicate the process of append in a Power Query but I do not know how to do it.

 

Thanks in advance!

8 Replies

  • v-eachen-msft's avatar
    v-eachen-msft
    Community Support

    Hi pratafran ,

     

    You could create a data dimension based on your "Backlog Month".

    Then refer to the following measure:

    Measure =
    IF (
        SELECTEDVALUE ( 'Table 2'[Backlog Month] )
            IN CALCULATETABLE (
                DISTINCT ( 'Table'[Backlog Month] ),
                ALLEXCEPT ( 'Table', 'Table'[Invoice Number] )
            ),
        "Y",
        "N"
    )

    Here is my test file for your reference.

     

    • pratafran's avatar
      pratafran
      Helper III

      It is a different approach to the above solution but seems to solve the problem too!, I will explore a little more to understand it better but thank you very much for your contribution!