Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello, Power BI community, need some help. I have two tables :
Table1 and Table2 both with fields ID (Unique in each table) and Date (date format).
Need to count how many IDs from Table2 are in Table1 with Table1.Date < '1/1/2019'
Any help is greatly appreciated!!
Solved! Go to Solution.
Hi @Anonymous
Try this measure in a card visual:
Measure =
COUNTROWS (
INTERSECT (
CALCULATETABLE ( DISTINCT ( Table1[ID] ), Table1[Date] < DATE ( 2019, 1, 1 ) ),
DISTINCT ( Table2[ID] )
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Hi @Anonymous ,
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Date less than and in table 2 = Calculate(Count(T1[ID]) , FILTER(T1,T1[ID]=LOOKUPVALUE(T2[ID],T2[ID],T1[ID] ) && T1[Date]<Date(2019,1,3) ))
Proud to be a Super User!
Hi @Anonymous
Try this measure in a card visual:
Measure =
COUNTROWS (
INTERSECT (
CALCULATETABLE ( DISTINCT ( Table1[ID] ), Table1[Date] < DATE ( 2019, 1, 1 ) ),
DISTINCT ( Table2[ID] )
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Thank you! Good idea! I've done it differently, linked two tables by ID. But I like INTERSECT better!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 45 | |
| 38 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 87 | |
| 69 | |
| 38 | |
| 29 | |
| 26 |