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
Anonymous
Not applicable

New measure to calculate Market Share between tables

Hi all,

 

I need to calculate Market share, although I need to take in considarantion two colunms from a second table. Both table are conected. 

I would need something like that:

Market Share Year =
VAR PartyVolume =
SUM ( Table[Year] )
VAR AllVolume =
CALCULATE(SUM ( Table[Year] ), ALL(Table[Column], Table2[Column]))
 
Although, "All" function does not accept other table. Anyone has other idea that does not include a need of merge both 

RETURN
DIVIDE ( PartyVolume, AllVolume)
6 REPLIES 6
Anonymous
Not applicable

harshnathani
Community Champion
Community Champion

 

Hi @Anonymous ,

 

Please share sample data and view of you model.

 

Regards,

Harsh Nathani

Anonymous
Not applicable

Table 1 = [id], [volume year1], [volume year2] ...

Table 2 = [id], [brand], [owner]

I have to calculate vol. market share taking into considaration table 2. Those are large set of data, for this reason I am avoiding merge.

Anonymous
Not applicable

Table 1 is not suitable for modeling in PBI. Please use UNPIVOT (around [id]) in Power Query to get it into the right shape:

id | year | volume

Best
D
Anonymous
Not applicable

I have it unpivot as well. In the unpivot case, do  how to calculate it taking in consideration the second table?

Anonymous
Not applicable

How to calculate this depends on what you understand by saying "market share." Please define in words.

Best
D

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.