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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MAltounis2
Frequent Visitor

Measure for counting IF based on 2 table criteria

I have two tables holding data for dates that i need calculating (Table 1 = Incoming) & (Table 2 = Started).

 

I created a pivot which gives me the number of people who are 'incoming' and another pivot table to show the number of people who have 'started'. I then clicked on the totals for both pivots (Incoming = 4291 & Started = 1321) which then created 2 new tabs for the totals. I needed to know the following through a formula;

 

- Count if the incoming date from Table1 (Incoming Date) is before the Incoming date of Table 2 and if so, check to see that the Started date from Table 2 is greater than or equal to 28 days from the Incoming date of Table 1.

 

There are 5 row labels i have split the total of 4291 into which for privacy purposes will say it as; Label 1, Label 2, Label 3, Label 4 & Label 5. So essentially would need to know the count for each label if selected out of the 4291.

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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