Forum Discussion

YunJ's avatar
YunJ
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Wrong result when putting different date.

Hi, I wrote a measure like following: When I put "Start Date" in the table, the result is correct. But for the bottom two tables, which I put "YearMonth" and "YearWeek" in the table, the result is ...
  • Icey's avatar
    6 years ago

    Hi YunJ ,

     

    To my understanding, try to create your measure like so:

    8 (2) =
    CALCULATE (
        SUM ( timetest[Sales] ),
        FILTER (
            ALLSELECTED ( timetest ),
            timetest[Land Date] IN VALUES ( timetest[Start Date] )
                && timetest[Presale_or not] = "Y"
        )
    )
    

     

     

    Best Regards,

    Icey

     

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