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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.