Forum Discussion

JoycevanWijk's avatar
JoycevanWijk
Frequent Visitor
2 years ago
Solved

P & L statement with calculation groups, maybe I have made it too difficult

I used a tutorial to create calculation groups for my P&L,    I have a table FinancialData and it has realisation and budget lines. The type is R for realisation and B for budget.    I want...
  • danextian's avatar
    danextian
    2 years ago

    Hi JoycevanWijk 

     

    If you want to exclude just the first month from showing YTD, you can just write

    IF (
        [Current Month Number] => 1,
        CALCULATE (
            CALCULATE ( SELECTEDMEASURE (), DATESYTD ( Dates[Date] ) ),
            SAMEPERIODLASTYEAR ( Dates[Date] )
        )
    )

     

    I think my 'problem' is, that I don't have an entire column with percentages, but one row. And the row is for the structure. What do you mean? Isn't your calculation item supposed to return %?