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

Formula calculating market share

Hi im trying to figure out a way to identify market shares for each day for each company + month to date and year to date. 
I have a big data set with multiple companies and dates, but I will use this as a simple example:

NorthernKarsten_0-1645798783742.png


I want my outcome to look something like this:

NorthernKarsten_2-1645800308396.png

 


Any idéas? I will appriciate any help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can create a measure like

divide(sum(Table[Revenue]),calculate(sum(Table[revenue]), removefilters(table[Company]))

 

then use this measure with day, Month and Year in row of matrix visual

 

Adding MTD and YTD like that would be challenging

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@amitchandak works great, thank you very much!

CNENFRNL
Community Champion
Community Champion

Formula worksheet formula is enough to deal with such simple question,

CNENFRNL_2-1645875424745.png

 

CNENFRNL_1-1645875239634.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

amitchandak
Super User
Super User

@Anonymous , You can create a measure like

divide(sum(Table[Revenue]),calculate(sum(Table[revenue]), removefilters(table[Company]))

 

then use this measure with day, Month and Year in row of matrix visual

 

Adding MTD and YTD like that would be challenging

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

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.