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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Total of all which have a certain value

I am failing on this particular subject which, at first, seemed quite doable to me.

 

In theory, I have the following table.

 

CountrySales
Germany20000
France22000
Belgium8000
The Netherlands10000
UK17000
Spain12000
Italy14000
Sweden 8500
Norway6000

 

I would like to have the total of sales of all countries where sales is > 12000. This would equal in above result to the sum of Germany, France, UK, Italy, so 73000.

 

I need this to get back in a measure as a fixed value. My model holds seperated facts and dimensions. I am trying this with the following formula:

 

Calculate(sum(sales) , filter( all(DimCountryTable) , sum(sales) > 12000).

 

This will simply add up the total sales of all countries but will only show for those countries with sales above 1200. Not what I want.

 

What I am basically want to achieve is this result if I make a grid. Please keep in mind, a fixed table is not an option for me as slicers still need to keep functioning.

 

CountrySalesSales2
Germany2000073000
France2200073000
Belgium800073000
The Netherlands1000073000
UK1700073000
Spain1200073000
Italy1400073000
Sweden 850073000
Norway600073000

 

Thank you in advance!

 

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Don't think about it too complicated, try

Measure = CALCULATE(SUM(DimCountryTable[Sales]),FILTER(ALL(DimCountryTable),DimCountryTable[Sales]>12000))

 6.PNG

 

Best Regards,

Jay

Anonymous
Not applicable

@Anonymous Thanks for your answer.This formula is similar to what I posted in OP and does not work in a model with normalized model.

camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Try this measure:

_Sum_GT12000 = SUMX(SUMMARIZE('Table', 'Table'[Country], "Total", CALCULATE(SUM('Table'[Sales]))), IF( [Total] >=12000, [Total], BLANK()))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



amitchandak
Super User
Super User

@Anonymous , Try a measure like

sumx(filter(summarize(Table,DimCountryTable[Country],"_1",sum(Table[sales])),[_1]>12000),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@Anonymous  - I think you can get what you want by using the same technique that is used for measure totals. Basically, create the table you want as a var and then sum and filter across it. 
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors