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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, i want to have your best solution again for the dax calculation
i have 2 simple table as date lookup and contract table.
if i make filter with the date lookup and i choose certain year month, i want to show the contract number, which are in the between the two dates (Contract start ~ Expired date) and product delivery older than 5 years.
https://drive.google.com/file/d/1OGfUmZppS1cLcrbJOJ4M3eOXX9hiT3Tf/view?usp=share_link
Hi @Jaesonkim
Please refer to attached sample file with the proposed solution
FilterMeasure =
COUNTROWS (
FILTER (
'Table',
DATEDIFF ( 'Table'[Product delivery], TODAY ( ), YEAR ) >= 5
&& 'Table'[Contract start] <= MAX ( 'Lookup Date'[Date] )
&& 'Table'[Expired date] >= MIN ( 'Lookup Date'[Date] )
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 16 | |
| 8 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 13 | |
| 12 | |
| 10 | |
| 6 |