Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
Ticket | Total Sales | Percent | Refund |
5-15 | £210.00 | 48.00% | £100.80 |
16-20 | £520.00 | 75.00% | £390.00 |
Solved! Go to Solution.
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
Proud to be a Datanaut!
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
Proud to be a Datanaut!
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
Proud to be a Datanaut!
Thank you for all your help Pete
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
18 | |
10 | |
9 | |
9 | |
8 |
User | Count |
---|---|
23 | |
16 | |
14 | |
12 | |
12 |