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
akpresta
Regular Visitor

SUM WITH FILTERS

Hello, I need help I have an error on this measurement how can I do ? I know it comes from having 2 conditions at the same time it doesn't work with "and" nor with "&&"

M1 = (CALCULATE(SUM('data (2)'[Estimative volume]),'data (2)'[Date de délistage]= "NA",'data (2)'[Statut Ref Com] = "Actuelle",'data (2)'[ORIGIN Indicator (code level) ] > 3 ,'data (2)'[Plant or Organism Scientific Name (genus + species)] = "A ,'data (2)'[Plant or Organism Scientific Name (genus + species)] = "B" )

Thanks in advance

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akpresta ,  Try like

 

M1 = CALCULATE(SUM('data (2)'[Estimative volume]),
filter( 'data (2)' 'data (2)'[Date de délistage]= "NA" &&
'data (2)'[Statut Ref Com] = "Actuelle" &&
'data (2)'[ORIGIN Indicator (code level) ] > 3 &&
'data (2)'[Plant or Organism Scientific Name (genus + species)] in{ "A" , "B"} )
)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@akpresta ,  Try like

 

M1 = CALCULATE(SUM('data (2)'[Estimative volume]),
filter( 'data (2)' 'data (2)'[Date de délistage]= "NA" &&
'data (2)'[Statut Ref Com] = "Actuelle" &&
'data (2)'[ORIGIN Indicator (code level) ] > 3 &&
'data (2)'[Plant or Organism Scientific Name (genus + species)] in{ "A" , "B"} )
)

Thank you very much

 It works perfectly 🙂 

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.