Forum Discussion

pan's avatar
pan
Frequent Visitor
8 years ago

MIN/MAX with dates and measures

Hi! I'm working on data for multiple years and I want to return the month when the target is reached. 

I am for the most part working with measures so referencing them in the MINX formula is tricky. What I'm thinking is to calculate a table or summarize the result of the ratios (computed with the MINS measure) by year and get the minimum ratio per year, and return the corresponding date but I don't know how to do that :( Here is the file for anyone who wants to help. https://drive.google.com/file/d/1PnaHIDRKaQ_musoJU8iEwYhEbBLh-roi/view?usp=sharing

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI pan,

     

    Based on test, I think the issue related to your target measure, it not support auto drill to next hierarchy level to get the specific. If you not add month as row label, it only calculate on year level.

     

    Regards,

    Xiaoxin Sheng

     

    • pan's avatar
      pan
      Frequent Visitor

      Hi! Thank you for your response! So would the best way to get around this is add a month column that's not from the Date Table and insert it as a filter?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi pan,

         

        Yes, I also consider about this scenario.
        Not add month : formula not works on current records;

        Add column: measure will expand lots of invalid data.

         

        Regards,

        Xiaoxin Sheng