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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
pb14
Regular Visitor

percentage

Hi everyone I am trying to find the cash percentage refund total in the following table in Power Bi, could someone please help with the formula, please

TicketTotal SalesPercentRefund 
5-15£210.0048.00%£100.80
16-20£520.0075.00%£390.00

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @pb14 ,

 

To calculate for each row in Power Query it would be:

[Refund] / [Total Sales]

 

To calculate over the whole table as a DAX measure would be:

DIVIDE(
    SUM(yourTable[Refund]),
    SUM(yourTable[Total Sales]),
    0
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

4 REPLIES 4
pb14
Regular Visitor

Hi Pete thanks for this sorry the refund bit was what I am trying to find, I should have explained it better. so would it be 

DIVIDE(
    SUM(yourTable[percent]),
    SUM(yourTable[Total Sales]),
    0
)

to find the refund value over the table 

 

Yes. When applied as a measure this calculation will give you the total refund percent of sales over the whole table.

When you add further dimensions to the same visual (e.g. department etc.) it will auto-aggregate over just those added dimensions.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




BA_Pete
Super User
Super User

Hi @pb14 ,

 

To calculate for each row in Power Query it would be:

[Refund] / [Total Sales]

 

To calculate over the whole table as a DAX measure would be:

DIVIDE(
    SUM(yourTable[Refund]),
    SUM(yourTable[Total Sales]),
    0
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thank you for all your help Pete

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.