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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.