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
I have a measure which is based on the following data.
Table A:
ID, Submitted Date, Completed Date
I want to create a measure which counts IDs, which either have Sumbmitted date before the date selected from the slicer (PK_date) and no Completed date, or Completed date after the date selected from the slicer.
My relationships are with dim_date on Submitted date and Compelted date, bot inactive.
Can someone help me with this metric? ChatGPT is not helpful
Solved! Go to Solution.
USERELATIONSHIP will not help you as it requires equality. You need "before" and "after" so you need to keep the relationships inactive and use regular FILTER queries instead.
count = COUNTROWS(FILTER('Table A',[Submitted date]<SELECTEDVALUE(Date[PK_date]) && ISBLANK([Completed date]) || [Completed date]>SELECTEDVALUE(Date[PK_date]) )
USERELATIONSHIP will not help you as it requires equality. You need "before" and "after" so you need to keep the relationships inactive and use regular FILTER queries instead.
count = COUNTROWS(FILTER('Table A',[Submitted date]<SELECTEDVALUE(Date[PK_date]) && ISBLANK([Completed date]) || [Completed date]>SELECTEDVALUE(Date[PK_date]) )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |