cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Patron

## Sum of column depends on text

Hi,

Thanks a lot for looking at my post.

I am using below Dax formula but unfortunately i am not getting what i need. Any help will be much appreciated.

Sum = CALCULATE(SUM('Order (2)'[Quantity]),FILTER('Order (2)',CONTAINS('Order (2)','Order (2)'[Name],"Name 1")||CONTAINS('Order (2)','Order (2)'[Name],"Name 3")||CONTAINS('Order (2)',' Order (2)'[Name],"Name 5")))

Thanks a lot

1 ACCEPTED SOLUTION
Super User

Hi,

Here is one way to do this:
Data:

Measure 23 = CALCULATE(SUM('Table (32)'[Value]),'Table (32)'[Name] in {"Name1","Name3"})

End result:

Only name1 and name3 are considered.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

Proud to be a Super User!

2 REPLIES 2
Post Patron

Perfect

Thanks a lot for your input

Super User

Hi,

Here is one way to do this:
Data:

Measure 23 = CALCULATE(SUM('Table (32)'[Value]),'Table (32)'[Name] in {"Name1","Name3"})

End result:

Only name1 and name3 are considered.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

Proud to be a Super User!