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! It's time to submit your entry. Live now!
New to DAX. I have 2 tables 1) PrimaryTable - which has the Id feild and 2)SecondaTable which has multiple rows with ID feild and end_date feild. Both tables are joined by ID column. I am trying to add a new column on Primary feild which states if the ID is active or not based on the conidtion that there are any records in SecondaryTable with end_date > today for that ID which states that it is still Active and if no records found is Not Active.
Thanks in advance
Solved! Go to Solution.
Column = COUNTROWS(FILTER(RELATEDTABLE(EntityHistory),EntityHistory[Date]>TODAY()))
In your first table.
You may use DAX below as well.
IsActive =
CALCULATE ( COUNTROWS ( SecondaryTable ), SecondaryTable[end_date] > TODAY () )
> 0
You may use DAX below as well.
IsActive =
CALCULATE ( COUNTROWS ( SecondaryTable ), SecondaryTable[end_date] > TODAY () )
> 0
Column = COUNTROWS(FILTER(RELATEDTABLE(EntityHistory),EntityHistory[Date]>TODAY()))
In your first table.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |