Forum Discussion

Kristofferaabo's avatar
8 years ago
Solved

Create a Calculated table

Hi, I'm new to calculated tables. But I think I need this as my raw dataset is not expressed the way I want it. Therefore I have two questions related to below raw data screenshot:         ...
  • v-ljerr-msft's avatar
    v-ljerr-msft
    8 years ago

    Hi Kristofferaabo,

     

    Could you try the formula below to see if it works? :smileyhappy:

    Table =
    SUMMARIZE (
        'Table1',
        'Table1'[project Code],
        'Table1'[last_name],
        "Budget approved", CALCULATE (
            FIRSTNONBLANK ( 'Table1'[actual_date], 1 ),
            FILTER ( 'Table1', 'Table1'[milestone_name] = "Budget approved" )
        ),
        "Budget submitted", CALCULATE (
            FIRSTNONBLANK ( 'Table1'[actual_date], 1 ),
            FILTER ( 'Table1', 'Table1'[milestone_name] = "Budget submitted" )
        )
    )
    

     

    Regards