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

calculate totals but filter out a specific product

Hello all,

 

Been trying to figure this out for a couple of hours. Pretty much new to DAX!
Any help would be appreciated!!

Here is sample data set. I want to sum all qty except for the domestic market.
The return should look like this - Export market - 406 . 

Item TypeDescriptionExport MarketQty
FGLCA Navel Standard Carton PCA Fancy 072 New Zealand HP 63 cppNew Zealand27
FGLCA Navel Standard Carton PCA Fancy 072 New Zealand HP 63 cppNew Zealand9
FGLCA Navel Standard Carton PCA Fancy 056 New Zealand HP 63 cppNew Zealand6
FGLCA Navel Standard Carton PCA Fancy 088 New Zealand HP 63 cppNew Zealand7
FGLCA Navel Standard Carton ULTIM ST Choice 138 Domestic RP 54 cppDomestic8
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 048 Korea HP 50 cppKorea22
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppDomestic50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea50
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea40
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppKorea45
FGLCA Navel Euro Standard Carton KASHU HBX Fancy 056 Korea HP 50 cppDomestic40
1 ACCEPTED SOLUTION
adudani
Super User
Super User

hi @Alxnder ,
create a measure shown below:

output

adudani_0-1713223499049.png

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

View solution in original post

2 REPLIES 2
adudani
Super User
Super User

hi @Alxnder ,
create a measure shown below:

output

adudani_0-1713223499049.png

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Wow, first of all, thanks for the really quick response. Secondly, it worked like a charm, much appreciated!!


Alxnder_0-1713289201024.png

 

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.

Top Solution Authors