Forum Discussion

v_mark's avatar
v_mark
Icon for Helper V rankHelper V
4 years ago
Solved

Card Visual showing a different Result (Category)

I have a requirement to  create a Card visual to show one specific Rating based from the date slicer. It appears that it is showing a different one as I compare it on the entire table below.  The Exp...
  • v-kkf-msft's avatar
    4 years ago

    Hi v_mark ,

     

    Please use the measure:

     

    StarRating = 
    FIRSTNONBLANKVALUE (
        'Fact'[Date],
        CALCULATE (
            MIN ( 'Dimension'[category] ),
            KEEPFILTERS ( 'Dimension'[Rating Value] = MAX ( 'Fact'[Store Rating] ) )
        )
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.