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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Varan_15
Helper II
Helper II

calculate value except last 3 months

Hi All,

 

I want to calculate value except last 3 months date. 

example:  as per below screenshot i need to exclude last 3 months date.(means latest 3 months should be excluded)

88.PNG

 

output: 

cc.PNG

Thanks,

Varan

1 ACCEPTED SOLUTION
HassanAshas
Helper V
Helper V

Try this,

 

Count Except Last 3 Months = 
    SUMX(
        FILTER(
            Sample_Data_Table, 
            Sample_Data_Table[Date] <= DATEADD(Sample_Data_Table[Date], 3, MONTH)
        ), 
        Sample_Data_Table[Amount]
    )

 

This will give you following result 

 

HassanAshas_0-1677135439467.png

 

View solution in original post

1 REPLY 1
HassanAshas
Helper V
Helper V

Try this,

 

Count Except Last 3 Months = 
    SUMX(
        FILTER(
            Sample_Data_Table, 
            Sample_Data_Table[Date] <= DATEADD(Sample_Data_Table[Date], 3, MONTH)
        ), 
        Sample_Data_Table[Amount]
    )

 

This will give you following result 

 

HassanAshas_0-1677135439467.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.