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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.