cancel
Showing results for 
Search instead for 
Did you mean: 
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
Resolver II
Resolver II

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
Resolver II
Resolver II

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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors