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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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