Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

hiding future (or some) date for calculations in dax in a time intelligence function

Hello Everyone! 

I’ve got this measure which calculate the Moving Annual Total of ImportoAvere+ (just a simple SUM of Importo). In this case i want to hide the first year so PrimoAnno (aka FirstYear) is “FALSE”.

MATImportoAvere+ = CALCULATE([ImportoAvere+];

                                                        CALCULATETABLE(DATESINPERIOD(Calendario[DataUnica];

                                                                                                                 LASTDATE(Calendario[DataUnica]);

                                                                                                                 -12;

                                                                                                                 MONTH);

                                                                                     Calendario[PrimoAnno]=FALSE()

                                                                                      )

                                                                                 )

As shown below there is a value in the first date (01/01/2008) that is repeated until the end of the year and i don’t know why it’s not hide. CAN SOMEONE HELP ME?

 

hide date.png

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Modify your measure as pattern below and check if this issue persists:

MATImportoAvere+ =
CALCULATE (
    [ImportoAvere+];
    FILTER (
        DATESINPERIOD (
            Calendario[DataUnica];
            LASTDATE ( Calendario[DataUnica] );
            -12;
            MONTH
        );
        Calendario[PrimoAnno] = FALSE ()
    )
)

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors