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'm looking for a measure for the follow issue.
I need the difference of total days between de exparation date and the selected date in the slicer.
In the model there's isn't an relationship between the tabels.
Solved! Go to Solution.
Try this MEASURE
=
DATEDIFF (
SELECTEDVALUE ( Calendar[Date] ),
SELECTEDVALUE ( Invoices[ExperationDate] ),
DAY
)
Try this MEASURE
=
DATEDIFF (
SELECTEDVALUE ( Calendar[Date] ),
SELECTEDVALUE ( Invoices[ExperationDate] ),
DAY
)
or this one
=
VAR Start_Date =
MIN (
SELECTEDVALUE ( Calendar[Date] ),
SELECTEDVALUE ( Invoices[ExperationDate] )
)
VAR End_Date =
MAX (
SELECTEDVALUE ( Calendar[Date] ),
SELECTEDVALUE ( Invoices[ExperationDate] )
)
RETURN
DATEDIFF ( Start_Date, End_Date, DAY )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 86 | |
| 85 | |
| 68 | |
| 64 |