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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculating Percentage using different tables

Hi, 

 

I have two tables, one database of shipped sales (Digital_Sales) and of refunds processed by a distribution centre (Database)

 

shipped.png

 

refunds.png

 

The two are connected via a 3rd and 4th table linking the 'date processed in dc_date' to 'fin year period'. 

 

What I'm trying to achieve is to get a visualisation of refunds as a % of sales grouped by period like in the excel example below. 

 

pc.PNG

 

I've tried performing this with the below measure.

 

Measure = sum(Database[RETURN_VALUE_SUM])/sum('Digital Sales'[Shipped_Sales])*100

I think the problem is the connection (see the bottom). When I build a table for return sum and sales sum by period, it's just summing everything for the sales.

 

Any help will be greatly appriecated. 

connection.jpg

 

 

 

 

example.png

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nevermind, fixed it.    The 'Cross Section filter' relationship between 'Period Definition' and 'Year List' needed to be both ways. It defaults to Single. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Nevermind, fixed it.    The 'Cross Section filter' relationship between 'Period Definition' and 'Year List' needed to be both ways. It defaults to Single. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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