Forum Discussion
Create a Calculated table
- 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
Hi Kristofferaabo,
If I understand you correctly, you should be able to use the formula below to create a new calculate table to get the expected result in your scenario. :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" )
)
)
Note: You'll need to replace 'Table1' with your real table name.
Regards
Hi v-ljerr-msft, this is really cool. Exactly what I was looking for. Perhaps a stupid question, But I was trying to include another column as I wanted a couple of these columns in my data (basically because I want to calculate time between each columns).
I tried something lik ethis, but it gives me a "TRUE/FALSE error"
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" )) )
- v-ljerr-msft8 years ago
Microsoft Employee
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
- Kristofferaabo8 years ago
Helper IV
YOU ARE WIZARD! Thanks