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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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