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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
suchomelb
Helper I
Helper I

Utilize only dates/months that exist in both tables for measure

I am trying to get an average in a measure, but the result is skewed because one of my two tables is a month behind sometimes. When I have an extra month of data in one table the average is way off.

 

How do I only utilize months that exist in both tables?

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @suchomelb ,

In order to get a better understanding on your requirement and give you a suitable solution for you shortly, could you please provide some raw data in your table with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Maybe this will help as an example. I have two tables like below. One has data for January through April, but the other table is a month behind. I want to be able to have on a card the average sales per headcount or per labor hour, but if I just sum up totals from both tables and do the calculation, its not accurate because there's an extra month of labor in that calculation. I only want the card do show to average based on complete months that exist in both tables. Thanks.

 

Labor Table 
DateEmployeeHours
1/1/2023Jon8
1/2/2023Bill8
2/1/2023Sarah8
2/2/2023Bill8
3/1/2023Jon8
3/2/2023Jon8
4/1/2023Sarah8
4/2/2023Jon8

 

Sales Table 
DateAmount
1/1/2023 $        300,000
2/1/2023 $        280,000
3/1/2023 $        310,000

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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