Forum Discussion

Mau_NWL's avatar
Mau_NWL
New Member
3 years ago

DAX All filtering data

Hello guys, 

 
I have this dax to measure Current year Savings, and i applied all function to get Full year but it doesnt seems to apply
CYS=
Sumx(
    filter(HippoMonthlySavings,
        AND(HippoMonthlySavings[ProjectStageId] = RELATED(HippoProject[ProjectStageId]),Year(HippoMonthlySavings[SavingsDate]) = Year(TODAY())
            )
           ),
        HippoMonthlySavings[Amount]
    )
 
Full year savings=
Calculate(CYS, ALL(HippoMonthlySavings[SavingsDate]) 
 
Do you know why is this happening?

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Mau_NWL ,

     

    Please try this measure.

    Full year savings=
    SUMX(VALUES('HippoMonthlySavings'[SavingsDate]),CYS)

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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