Forum Discussion
YTD plan measure
Hi All
I need help to create a measure for YTD Plan from the Total plan coloumn(see below screenshot)
where my condition should be if any of my sum(actuals) is blank for myAccounting period, then addup the plan numbers
which will be my YTD Plan number
YTD planned number= if sum(b. Actuals USD Current) is blank for accounting period then
- Anonymous6 years ago
vjnvinod
For other columns, you need to make a little change to the formula. It is categorized using the ALLEXCEPT function(Bold), you can always change the expression column. For example, I used it on Child Cost Type.YTD measure =CALCULATE(SUM(DataDumpFull[Plan Total]),FILTER(ALLEXCEPT(DataDumpFull, DataDumpFull[Child Cost Type]),CALCULATE(SUM([b. Actuals USD Current]),ALLEXCEPT(DataDumpFull, DataDumpFull['Raw Data'[3. Accounting Period]]])) <> BLANK()))
I am not sure whether it works for all, becasue you have too many columns with different data types, you can alway give it a try.
Best,
PaulIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
10 Replies
- AnonymousNot applicable
vjnvinod
For other columns, you need to make a little change to the formula. It is categorized using the ALLEXCEPT function(Bold), you can always change the expression column. For example, I used it on Child Cost Type.YTD measure =CALCULATE(SUM(DataDumpFull[Plan Total]),FILTER(ALLEXCEPT(DataDumpFull, DataDumpFull[Child Cost Type]),CALCULATE(SUM([b. Actuals USD Current]),ALLEXCEPT(DataDumpFull, DataDumpFull['Raw Data'[3. Accounting Period]]])) <> BLANK()))
I am not sure whether it works for all, becasue you have too many columns with different data types, you can alway give it a try.
Best,
PaulIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Hi, vjnvinod
If I understand you correctly, this formula should work.
YTD Measure = CALCULATE ( SUM ( Sheet1[Plan Total] ), FILTER ( ALL ( Sheet1 ), COUNTROWS( FILTER ( Sheet1, EARLIER ( Sheet1[ Period] ) <= Sheet1[ Period] ) ) ), FILTER (ALL(Sheet1),[Actual] <> BLANK ()))Best,
PaulIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- vjnvinod
Impactful Individual
Anonymous
no, this is not working, your measure is returning blank
- vjnvinod
Impactful Individual
Anonymous
here is the pbix if that helps
https;//drive.google.com/file/d/1Fu5C9pMg9tegx7zqV1hbpObvLP91DW6_/view?usp=sharing
expected output from this measure should be something like below highlighted in green