Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Month to Date Issue

Hi All,

 

Unfortunately I can't share the reprot but from what I have read this should be easier than I what I have been trying...

I have a calendar table that has dates by location so it has Location X Date 1/1/2022 Location Y Date 1/1/2022 etc. and then I have key that combines those columns so I can use the Location and Date filters to drill down on the three joining tables.

 

 

I am trying to get the MTD based on the Date tables filter however it has started ignoring the underlying Location and is stuck on showing everything for MTD.

 

My calculation for MTD is: 

Log Loads Month =
CALCULATE(
    SUM(Operations[LogLoads]),FILTER(ALL('Date'),'Date'[Date]>=MAX('Date'[SOM]) && 'Date'[Date]<=MAX('Date'[Date])))+0
But you can see it stays at 808 despite me changing the location column from the date table:
 

 

 

Any idea?

  • Hi Anonymous ,

     

    Slicers values can't change Calculated columns value.

    Please check that whether the "Log Loads Month" in your sample is a calculated column, if so, please use a measure and try again.

     

    Best Regards,
    Community Support Team _ xiaosun

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    The correct value for Bay Springs should be 312 based on the far left column in the image above.

    • v-xiaosun-msft's avatar
      v-xiaosun-msft
      Community Support

      Hi Anonymous ,

       

      Slicers values can't change Calculated columns value.

      Please check that whether the "Log Loads Month" in your sample is a calculated column, if so, please use a measure and try again.

       

      Best Regards,
      Community Support Team _ xiaosun

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