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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
brinky
Helper IV
Helper IV

Market Share using Tabular Editor

Good morning,

 

Any idea how to create a caclculation on Tabular Editor to get MARKETSHARE as per attached excel sample file.

 

My other calcluations listed below work like a charm, thanks to Marco Russo's video.

MarketShare.png

Calculations.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@brinky , for % of total you need to Modify a measure like

divide([PY], calculate([PY], allselected(Table)))

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

4 REPLIES 4
negi007
Community Champion
Community Champion

@brinky You can use your already created PY, PM and Current to calculate share% from total. You drag these measures in the value field and right clicking will allow you to change the values into % of grand total which is basically the share% from total

 

negi007_0-1607954157689.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thanks for your reply, unfortunately this doesn't wok when using calculations with Tabular Editor.

amitchandak
Super User
Super User

@brinky , for % of total you need to Modify a measure like

divide([PY], calculate([PY], allselected(Table)))

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

Thanks, @amitchandak worked as required and as expected. 👏

 

Thank You

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.