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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.