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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors