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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBIBeginner2022
Helper III
Helper III

Sum of all month except one month

Hi everyone,

 

I have a measure like this : CALCULATE(SUM(TPODeliveries[Delivered value in €]), TPODeliveries[Type] = "PO_Delivery")

 

This measure calculate the sum of Delivered value in € for each month of the year. However I need to calculate this sum for all month except one month. I have a column which contain the month that I don't want sum in my formula. Do you know the DAX function to add to my formula in order to sum all month without the month that I don't want which in my other column ?

 

 

Thanks in advance,

1 ACCEPTED SOLUTION

@PBIBeginner2022 , if you have date,better to get using month year. You do not want jun when you are in August.

CALCULATE(SUM(TPODeliveries[Delivered value in €]), TPODeliveries[Type] = "PO_Delivery" , eomonth(TPODeliveries[Month],0) <> eomonth(today(),-2)  )

 

of

 

 

CALCULATE(SUM(TPODeliveries[Delivered value in €]), filter(TPODeliveries, TPODeliveries[Type] = "PO_Delivery" &&  eomonth(TPODeliveries[Month],0) <> eomonth(today(),-2)  ) )

 

 

In case you want use month name use format on top of eomonth(today(),-2)

format(eomonth(today(),-2), "mmm-yyyy")

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
johnt75
Super User
Super User

CALCULATE(SUM(TPODeliveries[Delivered value in €]), TPODeliveries[Type] = "PO_Delivery" , NOT TPODeliveries[Month] IN VALUES('Table'[Unwanted month]) )

Thanks @johnt75 ,

 

I try your solution but the result is not that I want.

 

I want a measure like this photo :

 

PBIBeginner2022_0-1657713671487.png

 

amitchandak
Super User
Super User

@PBIBeginner2022 , Based on what I got

 

a measure like

 

CALCULATE(SUM(TPODeliveries[Delivered value in €]), TPODeliveries[Type] = "PO_Delivery" ,TPODeliveries[Month]  <> "Jan-2020" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak ,

 

I search a mesaure where i don't need to write the month that I don't need beacause next month the month will be different. I want never sum the month just before the last monh:

 

PBIBeginner2022_0-1657713846311.png

 

@PBIBeginner2022 , if you have date,better to get using month year. You do not want jun when you are in August.

CALCULATE(SUM(TPODeliveries[Delivered value in €]), TPODeliveries[Type] = "PO_Delivery" , eomonth(TPODeliveries[Month],0) <> eomonth(today(),-2)  )

 

of

 

 

CALCULATE(SUM(TPODeliveries[Delivered value in €]), filter(TPODeliveries, TPODeliveries[Type] = "PO_Delivery" &&  eomonth(TPODeliveries[Month],0) <> eomonth(today(),-2)  ) )

 

 

In case you want use month name use format on top of eomonth(today(),-2)

format(eomonth(today(),-2), "mmm-yyyy")

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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