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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to sum specific rows

Hi everyone!

 

I'm a new user of Power BI and am slightly stuck.

 

I have three columns. One is timestamp over a year, the other is a list of about 20 locations  and the last is all the values associated to the location at specific times. I am trying to create a measure to sum the values of one specific location. Can anyone help me with writing the measure please, I am getting used to DAX. So I need to do a SUM but filtered to one of the locations.

 

Thanks for your help!

 

 

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous


Create a measure like the followig one:

MEASURE =  CALCULATE(SUM('Table'[Values]), 'Table'[Location] = "London")

View solution in original post

2 REPLIES 2
Ifmm
New Member

Hi Everyone,

I have 3 columns: Month (January to December), customer number (up to 10000 different numbers) and Bought (1 or 0).

I'd like to have another column where I can see the total months the person worked. It will be repeated throught the rows for the same customer, and that's ok.

 

What would be the DAX?

 

Thanks

themistoklis
Community Champion
Community Champion

@Anonymous


Create a measure like the followig one:

MEASURE =  CALCULATE(SUM('Table'[Values]), 'Table'[Location] = "London")

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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