Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

DATESYTD

Good day,

 

I am working with OData feed from MS Projects to build a dashboard in Power BI that will be running and checked for updates. The data has been sanitized. I am using a matrix to display numbers for future cashflow and targets. Most of my measures are working correctly, but I am having some difficulty with YTD Calculation 4.

 

I have a measure DATESYTD for YTD Calculation 2 which is working as expected, adding and recurring a monthly amount with the rest. I would like to achieve the same behavior for YTD Calculation 4 to see if we are on target . Would it be possible for someone to assist me in resolving this issue and making YTD Calculation 4 recurring and adding up like YTD Calculation 2?

Context: 

Onceoffs with zeros: a table in that i just replaced blanks with 0 

Onceoffs with 0 = IF(
    [Onceoffs]=BLANK(),
    0,
    CALCULATE([Onceoffs]))

YTD Calculations 2: DATESYTD works perfectly giving a running total for the monthly invoice on the matrix

YTD Calculation 2 =
 CALCULATE(
[Monthly Invoice],
DATESYTD('Table'[Date],"28/02"))

Income for month: also works fine 

Income for Month = CALCULATE(
    [YTD Calculation 2]+[Onceoffs with 0])

Ytd Calculation 4: Does not work, I want a running total like YTD Calculation 2, but just using Income for month. I don't even know what it is calculating. 

YTD Calculation 4 =
 CALCULATE(
[Income for Month],
DATESYTD('Table'[Date],"28/02"))




1 Reply