Forum Discussion

Peter_Yaacoub's avatar
Peter_Yaacoub
Frequent Visitor
4 years ago
Solved

MTD Measure displays no values

Hello everyone!

Back with another issue in my measures.

 

I am trying to caluclate MTD ratios from YTD values using the following formula 

MTD Hist Gross Profit = CALCULATE(SUMX(Historical___UK,[Gross Profit]),DATESMTD(Dim_Dates[Date]))
 
However, once dragged to a visualisation, it only shows the header without any values. I am pretty sure there is a mistake in my formula. Your help is appreciated.

 

 
Thank you
 
Peter
  • Hi Peter_Yaacoub ,

    According to your snapshot, Gross Profit is a column in your table, try to modify the formula to:

    MTD Hist Gross Profit =
    CALCULATE ( SUM ( [Gross Profit] ), DATESMTD ( Dim_Dates[Date] ) )
    

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

3 Replies

  • Hi Peter_Yaacoub ,

    Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

    Best Regards,
    Community Support Team _ kalyj

  • Hi Peter_Yaacoub ,

    According to your snapshot, Gross Profit is a column in your table, try to modify the formula to:

    MTD Hist Gross Profit =
    CALCULATE ( SUM ( [Gross Profit] ), DATESMTD ( Dim_Dates[Date] ) )
    

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.