Forum Discussion

Amelia's avatar
Amelia
Frequent Visitor
8 years ago
Solved

Stacked and Line Chart - comparing both years

Hi Guys   I was using the cluster colum chart to great effect to compare last year with this years orders counts.     I would now like to use the line and cluster colum chart to show the s...
  • MFelix's avatar
    MFelix
    8 years ago

    Hi Amelia,

     

    Change your formula to:

     

    YTDCumlativeOrderValue =
    IF (
        ISBLANK ( SUM( Fact_Orders[OrderValue] )),
        BLANK (),
        TOTALYTD( SUM( Fact_Orders[OrderValue] ) , Dim_Date[DateSK])
    )

    Should give you the expected result, another way is to have your Dim_Date to end on the current date so you won't get any date values from today onwards so on your visuals there will not be future dates.

     

    Regards,

    MFelix