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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dkalina97
Helper I
Helper I

Filter to show all items where contains

This seems like it should be an easy query but I am struggling. From my Sales table, I would like to bring in all invoices and items, where one of the items on the invoice contains "Coupon" in order to view all invoices and items that were discounted.

1 REPLY 1
olgad
Super User
Super User

Hi, if it is a measure then

M1=
Calculate
(Sum(Table[Invoices]), Filter(Table,CONTAINSSTRING(min(Table[Invoice/Or whatever column you are checking]), "Coupon")=true))

If it is a column then you can check true false or like that, see the example
olgad_0-1677019868966.png

 

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.