Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I want to use a date slicer, which returns one date, to calculate the number of days between each transaction date and the selected slicer date, this to accomodate for an option to show a customer aging report as it was on a given date.
My issue is that this works 100%:
Daysbetween = date(2019;6;30)-'Date'[Date]
While this doesnt work
SelectedDate = SELECTEDVALUE(PerDateTable[PerDate]) DaysbetweenMeasureinput = [SelectedDate]-'Date'[Date]
event though I know [SelectedDate] returns the same date 30.06.2019
I understand this has to do with context, but is there any way to achieve this?
Any pointers are appreciated.
Solved! Go to Solution.
Hi @Anonymous
Take a try of this one:
Measure = MAXX('Date',DATEDIFF([Date],SELECTEDVALUE(PerDateTable[PerDate]),DAY))
Hi @Anonymous
Take a try of this one:
Measure = MAXX('Date',DATEDIFF([Date],SELECTEDVALUE(PerDateTable[PerDate]),DAY))
Hi @Anonymous
You can create a measure to calculate this, something like below.
DaysbetweenMeasureinput = SUMX( Dates, SELECTEDVALUE( DatePicker[Date] ) - Dates[Date] ) * 1
See the attached file for reference.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |