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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
matt_r_p
New Member

Filter context on a card visual

Hello, this must be a very easy question but despite reading lots of pages I am stumped. 

 

I am trying to use a measure to divide two other measures but it won't keep the filter context on the total. In the image below, I want to divide Total Sales by Total FOH Hours to get FOH Productivity per site. Instead, it is giving me the grand total of Total Sales divided by Hours for each Site. How do I get Power BI to give me Total Sales By Site divided by Hours Per Site - without me having to create a measure for each one (such as "site = DSQ")? I have a site list and a date list as separate tables, with relationships set up between the sales data and the rota data.

 

matt_r_p_0-1665441442454.png

Here's the relationships. Tevalis Reports is the sales data, Planday data is the hours worked.

 

matt_r_p_1-1665441721624.png

The productivity measure I've got is 

FOH Productivity = divide ([Total Sales], [Total FOH Hours])
 
Grateful for help, thank you.
1 ACCEPTED SOLUTION

Thanks. 

 

In fact I had a thought overnight and solved it. The issue was that in the FOH Productivity table, I was using 'Site' as the filter from the Planday reports table and not the SiteList table, and it wasn't carrying the filter through to the TevalisReports sales data. Perhaps in future it would be good practice to give a different name to a field in a dim table such as SiteList to avoid this confusion?

View solution in original post

2 REPLIES 2
Shaurya
Memorable Member
Memorable Member

Hi @matt_r_p,

 

Instead of using:

 

FOH Productivity = DIVIDE([Total Sales],[Total FOH Hours])

 

Use:

 

FOH Productivity = SUM('Tevalis Report'[Sales]/'Tevalis Report'[FOH Hours])

 

Works for you? Mark this post as a solution if it does!

Thanks. 

 

In fact I had a thought overnight and solved it. The issue was that in the FOH Productivity table, I was using 'Site' as the filter from the Planday reports table and not the SiteList table, and it wasn't carrying the filter through to the TevalisReports sales data. Perhaps in future it would be good practice to give a different name to a field in a dim table such as SiteList to avoid this confusion?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.