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
Himanshi0291
Helper II
Helper II

SUM with FILTER IN does not populate value of third variable

Hi guys,

 

I'm experiencing a peculiar problem with SUM with FILTER IN function in which it's not adding value of third value in any fashion used. My query is - 

Administration Hours = CALCULATE(SUM(DK_Time_Temp[RegHrs]), FILTER('DK_Projects','DK_Projects'[Name] IN {"Administration","CH Administration","Administration HK"}))
 
but in this, I get SUM of only 2 variables i.e. 'Administration' & 'CH Administration' and it does not value of third variable 'Administration HK'. 
 
Can you please help? 
1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Himanshi0291 ,

 

 

Try Troubleshooting.

 

1.In Power Query Trim the column. Maybe a leading space is causing this issue.

2. Try using  || .  Administration Hours = CALCULATE(SUM(DK_Time_Temp[RegHrs]), FILTER('DK_Projects','DK_Projects'[Name] = "Administration"|| 'DK_Projects'[Name]= "CH Administration"|| 'DK_Projects'[Name] = "Administration HK"))

 

Try solving for each one separately and see the results.

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @Himanshi0291 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or add your reply as Answered to close this thread.
More people will learn new things here. If you haven't, please feel free to ask.

Best Regards,
Community Support Team _ Eason

 

v-easonf-msft
Community Support
Community Support

Hi , @Himanshi0291 

There are no errors in the syntax of the formula.

Please make sure that your third variable'Administration HK' isn't misspelled.

 

In addition ,please check  whether  the data has  been filtered by other filters in advance.

 

Best Regards,
Community Support Team _ Eason

harshnathani
Community Champion
Community Champion

Hi @Himanshi0291 ,

 

 

Try Troubleshooting.

 

1.In Power Query Trim the column. Maybe a leading space is causing this issue.

2. Try using  || .  Administration Hours = CALCULATE(SUM(DK_Time_Temp[RegHrs]), FILTER('DK_Projects','DK_Projects'[Name] = "Administration"|| 'DK_Projects'[Name]= "CH Administration"|| 'DK_Projects'[Name] = "Administration HK"))

 

Try solving for each one separately and see the results.

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

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.