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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

Reply
Anonymous
Not applicable

Get a value from a specific characteristic in a colum

Hi I have a question which makes me crazy 😄 hope you can help me 

 

This is my table: 

employeeIDPointsDays
916365
9430
9390
92

30

 

Now I am trying get the sum of points for each employee for a specific Day value. That means it should output 6 when I want to get the sum of points for the day value "30" (2+4) 

 

I created following measure but that did not work properly. 

IF(SELECTEDVALUE('Delay'[Days]) =30 ;SUM('Delay'[Points]);BLANK()))
 
Do you have any ideas? Thank you!
1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You need a measure as below:

 

 

Measure = CALCULATE(SUM('Table'[Points]),ALLEXCEPT('Table','Table'[Days]))

 

 

And you will see :

 

Annotation 2020-01-28 172831.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly

 

View solution in original post

5 REPLIES 5
Tahreem24
Super User
Super User

@Anonymous ,

 

Or try using below measure:

Measure 2 = SUMX('Table',CALCULATE(sum('Table'[Points]),'Table'[Days]=30))
Capture.JPG
 
Don't forget to give thumbs up 👍 and accept this as a solution if it helped you.
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi @Anonymous 

 

Your measure works fine when i tested. 

 

If your "Days" column is not in number format you need to add " around 30, i also noticed you seem to have one ) to many at the end. 

 

This is what I used: 

Measure = IF(SELECTEDVALUE('Table'[Days]) = 30; SUM('Table'[Points]);BLANK())
 
br
Adrian
Tahreem24
Super User
Super User

@Anonymous ,

 

Use the below Measure:

Measure = CALCULATE(sum('Table'[Points]),ALLEXCEPT('Table','Table'[Days]))
 
Don't forget to give thumbs up 👍 and accept this as a solution if it helped you.
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi, this sums up all the values of 30, but does not differenciate between the employeeIDs. SO it outputs for every employee the same result. 

Hi @Anonymous ,

 

You need a measure as below:

 

 

Measure = CALCULATE(SUM('Table'[Points]),ALLEXCEPT('Table','Table'[Days]))

 

 

And you will see :

 

Annotation 2020-01-28 172831.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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