cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Impactful Individual
Impactful Individual

How to COMPETITOR="IBM" to my existing expression ?

Hi All

Below expression working fine :-

rev = sumX(filter(COMPETITOR,COMPETITOR[COMPETITOR]="APPLE"),COMPETITOR[REVENUE_C])
 
May i know how to add one more condition on COMPETITOR = "IBM" to above expression ?
 
Paul Yeo
 
1 ACCEPTED SOLUTION
Super User IV
Super User IV

@Paulyeo11 , Try like

rev = sumX(filter(COMPETITOR,COMPETITOR[COMPETITOR] in {"APPLE","IBM"}),COMPETITOR[REVENUE_C])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

@Paulyeo11 , Try like

rev = sumX(filter(COMPETITOR,COMPETITOR[COMPETITOR] in {"APPLE","IBM"}),COMPETITOR[REVENUE_C])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Super User II
Super User II

Try this,

rev = sumX(filter(COMPETITOR,COMPETITOR[COMPETITOR]="APPLE" || COMPETITOR[COMPETITOR]="IBM"),COMPETITOR[REVENUE_C])

Connect on LinkedIn

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors