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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Alxnder
Frequent 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.