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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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