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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.