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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PowerRon
Post Patron
Post Patron

How to divide a measure on a value of a column of a linked table?

Hi

 

I would like to describe a problem in simplified form.
I have a fact table with transactions, that is linked to a country-tabel by country-key. Country - Fact = one to many.
Every transaction is counted as 1 in my explicit measure [Sum of Transactions].
The country-table contains country-key and country-code.
Country-code can be FR, IT, IE etc.

 

Now I want to make two rows in a matrix with [Sum of Transactions]:

  • row 1 where country-code = ES (home country)
  • row 1 where country-code <> ES

What is the best and easiest way to solve this if I can't change the country-table in the source?


Add another column to the view with ES-transactions and not-ES-transactions?? (this division will always be made, since ES is home country)

Add a calculated column to the country-table in Power Query? This column has two values: 'ES' for country ES and 'non-ES' for all other countries.

Create two extra measures with the DAX RELATED function, one [Sum of ES Transactions], one [Sum of non-ES transactions]?

How would this DAX formula look like?

Or is using grouping in the country table an option? Group 1 = ES, group 2 = non-ES

 

I don't know what is the best option and if there are even better options. Hope someone can help.

 

regards 

Ron

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@PowerRon Create 2 measures and use "Show as rows"



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...

Hi @Greg_Deckler 

 

thnx for your answer.
But how would the measures look like then? And what do you mean with "Show as rows"?

Is it possible to help me a little bit, because it is not completely clear to me

regards

Ron

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.