Forum Discussion

macwhe's avatar
macwhe
Helper I
4 years ago
Solved

max per order issue

Hi All,   I am struglling with MAX function. I have 2 dimension tables and on Facttable. between 2 dimensions there is a inactive relationship . and between the fact table and FreezeDate Snapshot t...
  • v-xulin-mstf's avatar
    4 years ago

    Hi macwhe,

     

    Try measure as:

    Measure = 
    IF(
        MAX(Facttable[FreezeDate])>=ALLSELECTED('Second Dimension'[Freeze Comparison Snaphot]) && MAX(Facttable[FreezeDate])<=ALLSELECTED('First Dimension'[Freeze date SnapShot]),
        1,
        0
    )

    Here is the output:

    The demo is attached, please try it.

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!