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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rod_puente
Helper I
Helper I

Calculation affected by segment month

Dear All

 

Pls your help, I have a table in PBI Desktop, but it is not taking into account the month segment. I have applied the month of January and the table with calculate continues showing me Feb, Mar, etc., when the correct thing would be to show values ​​in 0.

 

rod_puente_0-1758594250575.png  

rod_puente_1-1758594267761.png

 

I used the CALCULATE function:

Cantidad Facturada Enero =
CALCULATE( SUM('Detalle Facturacion'[Cantidad Facturada]), 'Detalle Facturacion'[Mes Nombre]= "Ene" )

 

What would the function need to calculate based on the applied month segment? Or what would be the correct function?

 

 

Regards

Rodrigo P.

 

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try something like below whether it works.

 

KEEPFILTERS DAX FUNCTION Microsoft Learn 

 

Cantidad Facturada Enero =
CALCULATE (
    SUM ( 'Detalle Facturacion'[Cantidad Facturada] ),
    KEEPFILTERS ( 'Detalle Facturacion'[Mes Nombre] = "Ene" )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Ensure that the month slicer is from the Calendar table.  Simplify your measure to

=SUM('Detalle Facturacion'[Cantidad Facturada])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Ensure that the month slicer is from the Calendar table.  Simplify your measure to

=SUM('Detalle Facturacion'[Cantidad Facturada])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try something like below whether it works.

 

KEEPFILTERS DAX FUNCTION Microsoft Learn 

 

Cantidad Facturada Enero =
CALCULATE (
    SUM ( 'Detalle Facturacion'[Cantidad Facturada] ),
    KEEPFILTERS ( 'Detalle Facturacion'[Mes Nombre] = "Ene" )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.