cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
billuran2009
Frequent Visitor

Calculate function multiple values

I have a calculate function:
CALCULATE(sum(ARCharges[QUANTITY]),ARCharges[PROCEDURE CODE]="R&B")
 
I want to include 2 other conditons "LVR&B "and "PBR&B" how can I sun those charges for just those 3 procedure codes.
 
1 ACCEPTED SOLUTION
FrankAT
Super User II
Super User II

Hi @billuran2009 ,

I think you can do it like this:

 

CALCULATE(SUM(ARCharges[QUANTITY]),ARCharges[PROCEDURE CODE] IN {"R&B", "LVR&B ", "PBR&B"})

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

1 REPLY 1
FrankAT
Super User II
Super User II

Hi @billuran2009 ,

I think you can do it like this:

 

CALCULATE(SUM(ARCharges[QUANTITY]),ARCharges[PROCEDURE CODE] IN {"R&B", "LVR&B ", "PBR&B"})

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

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

Top Solution Authors
Top Kudoed Authors