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
akarca
Frequent Visitor

Sum data by the dates if another colums incude specific text

Hi, 

I want to sum all data if there is "2 Spinner" data on the date (except 2 spinner data).

For example, on 01.01.2022 there is "2 spinners" item in the Item column. So, I would like to sum up only the other data (stop +breakdown + production) on Jan. 01.

 

 

DateDataItem
1.01.2022202 Spinner
1.01.202250stop
1.01.202245Production
1.01.2022480breakdown
2.01.2022122breakdown
2.01.2022652 Spinner
2.01.202246Production
3.01.202289stop
3.01.202248breakdown
3.01.202250stop
3.01.202260Production
4.01.202245Production
4.01.202260stop
4.01.202292breakdown
5.01.2022742 Spinner
5.01.202245Production
5.01.202210stop
1 ACCEPTED SOLUTION
Shreeram04
Resolver III
Resolver III

Hi @akarca ,

 

Please find the below measure and screenshot for your reference.

 

Shreeram04_0-1661850964408.png

Measure 6 = CALCULATE(SUM('Table (4)'[value]),FILTER('Table (4)','Table (4)'[pro]<>"2 spinner"))
 
Did I answer your question? Mark my post as a solution and also give KUDOS!
Thanks,

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much. I tried. 

Shreeram04
Resolver III
Resolver III

Hi @akarca ,

 

Please find the below measure and screenshot for your reference.

 

Shreeram04_0-1661850964408.png

Measure 6 = CALCULATE(SUM('Table (4)'[value]),FILTER('Table (4)','Table (4)'[pro]<>"2 spinner"))
 
Did I answer your question? Mark my post as a solution and also give KUDOS!
Thanks,

Firstly, thank you for your support. Actually, I solved the problem with a different formula. 

 

I wanted to sum data from dates containing 2 spinner texts.

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