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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
datadelta
Helper III
Helper III

Divide a row value by another row value

I am sorry but I have tried every way possible to get this to work before coming here.

 

I have have a data set with rows and I need to divide each row by another row within the set.

 

Store       Has Sales  Total Stores Avail  Penetration %

John's          74                      95                    77.89%

 

How do I write the formula in BI to get the penetration percentage?  Everything I write tries to do it by sum or by column.  

2 ACCEPTED SOLUTIONS
ALLUREAN
Solution Sage
Solution Sage

Penetration%Measure =

VAR _HasSales = SUM(Table[Has Sales] --or measure already created

VAR _TotalStores = SUM(Table[Total Stores Avail]--or measure already created
RETURN
DIVIDE(_HasSales , _TotalStores )
then set format to %




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


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




View solution in original post

Thank you.

I suddenty realized I was overcomplicating the problem.

 

= SUM('AllStores'[Has Sales])/(95)

 

View solution in original post

2 REPLIES 2
ALLUREAN
Solution Sage
Solution Sage

Penetration%Measure =

VAR _HasSales = SUM(Table[Has Sales] --or measure already created

VAR _TotalStores = SUM(Table[Total Stores Avail]--or measure already created
RETURN
DIVIDE(_HasSales , _TotalStores )
then set format to %




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


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Thank you.

I suddenty realized I was overcomplicating the problem.

 

= SUM('AllStores'[Has Sales])/(95)

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.