Forum Discussion

Chipsnump's avatar
Chipsnump
Icon for Advocate I rankAdvocate I
2 years ago
Solved

Card shows 0 value No filter applying IF Statement Measure

Hi, I am creating the payment under the condition of minimun sales threshold with IF statement. The logic itself, is fine, but I would like to present the total payment in card without any filter ap...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Chipsnump 

     

    Here I create a measure:

    MEASURE =
    VAR _vtable =
        SUMMARIZE (
            'Custoemr',
            'Custoemr'[Group Name_2],
            "_ActSales", [Actual_Sales],
            "_Crteria", [Criteria 1]
        )
    RETURN
        SUMX ( _vtable, [_Crteria] )
    

    Add it into a card, the result is as follow:

     

    Best Regards

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

  • Ashish_Mathur's avatar
    Ashish_Mathur
    2 years ago

    Hi,

    I do not know what result you want.  Furthermore, when i opened the file, i got 10,000 as the answer in the card visual (not a 0).  Anyways, drag this measure to the table and card visual

    Measure = SUMX(VALUES(Custoemr[Group Name_2]),[Criteria 1])

    Hope this helps.

     

  • Chipsnump's avatar
    Chipsnump
    2 years ago

    I made it, thank you so much for your kind support and advice 🙂