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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

Power BI Monthly Update - August 2025

Check out the August 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.