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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Himanshi0291
Helper II
Helper II

Filtered value doubles values

Hi,

 

I've been facing the issue of double values in my query when i try to calculate sum of hours into projects with names = Administration, Administration HK and CH administration. 

 

My query is - 

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"))
 
The problem is that if there are hours in 'Administration' and no hours in CH administation or Administation HK even then my query adds hours of Administration twice or thrice. Looks like it is adding administration wherever it finds values. CH or HK administration both have 'Administration' word. 
 
How do i stop it from adding values and let it consider values of Just 'Administration' or 'CH Administration' or 'Administration HK'? Please help.
 
Capture1.PNG
 
4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi , @Himanshi0291 

Do you have resolved it? If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.
Best Regards,
Community Support Team _ Eason


parry2k
Super User
Super User

@Himanshi0291 you have given or condition, if there are 3 rows of same project name with 3 options, it will sum up all three. it is doing as expected, what you want to achieve? Don't want to sum if the project as all 3 values? 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi, I want that it should sum up all three if it has all three project names.

But in my case I have noticed since all the three project names have a word "Administration" common in them it is summing it multiple times.

For example, let suppose I want the sum of project named= "Administration" so instead of given me the result 1, it gives me 3 means it is picking the value from rest 2 also as they also have "Administration" in project name, which should not happen. How to fix this, please suggest.

Hi , @Himanshi0291 

 

The problem is that if there are hours in 'Administration' and no hours in CH administation or Administation HK even then my query adds hours of Administration twice or thrice. Looks like it is adding administration wherever it finds values. CH or HK administration both have 'Administration' word. 

I’m not  sure what you mean by this word . Filter 1 (project named= "Administration" ), Filter2 (project named=Administration HK) and Filter3 (CH Administration)   are independent of each other, and there is no case of repeated counting.

 

Can you  share some sample data with actual result in pbix  and  expected  result in excel ?

Best Regards,
Community Support Team _ Eason

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors