Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have 2 table A and B
table1
ID Name
1 A
2 B
3 C
4 D
table2
ID Name Date
1 A 01-02-2017
2 B 02-05-2017
3 c 02-05-2015
4 d 02-05-2014
expedted output : Count of the record which is matching in both table and Date shold be > 2016
ANS : 2
(E.g ID Name Date
1 A 01-02-2017
2 B 02-05-2017
)
Please let me know the DAX expression for this.
Solved! Go to Solution.
Create a Flag with the following formula and filter Flag = 1 to get teh desired result.
Flag = IF(YEAR(Table2[Date]) > 2016 && RELATED(Table1[ID])= Table2[ID],1,0)
Thanks
Raj
Hi @Parihar1980,
Have you solved your problem?
If you have solved, always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Hi @Parihar1980,
Have you solved your problem?
If you have solved, always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Create a Flag with the following formula and filter Flag = 1 to get teh desired result.
Flag = IF(YEAR(Table2[Date]) > 2016 && RELATED(Table1[ID])= Table2[ID],1,0)
Thanks
Raj
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 106 | |
| 39 | |
| 33 | |
| 25 |