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've encountered something very strange today, with a formula that previously worked fine, but now for some reason it's thrown a wobbly.
Solved! Go to Solution.
I've not, but I didn't yesterday and it was working. I've now found a soution which was to delete all the relationships, then start to rebuild them, I've only linked up the Date and the Office table, but it's now working fine, I must have done something when linking a table up this morning somewhere
What you're doing here:
FILTER(Dates,Dates[Date]<=today()))
is not filtering all dates so that all of them are taken into account up to and including TODAY. What you're doing is something very different. You are filtering Dates AS VISIBLE IN THE CURRENT CONTEXT to only be those that are not in the future. This has by no means anything to do with "To Date." But I don't really know what it is you want to achieve since your pictures do not agree with your words...
[Bookings Budget UK (TD)] =
var MaxVisibleDate = MAX( Dates[Date] )
var Result =
CALCULATE(
[Bookings Budget UK],
// Dates should be a date table
// marked as such in the model.
Dates[Date] <= MaxVisibleDate
)
return
Result
// Here's the same measure but you
// fix once and for all that the
// anchor date should be TODAY.
[Bookings Budget UK (TD)] =
var MaxVisibleDate = TODAY()
var Result =
CALCULATE(
[Bookings Budget UK],
// Dates should be a date table
// marked as such in the model.
Dates[Date] <= MaxVisibleDate
)
return
Result
Thanks, I'll take a look at that formula, but seem error must have been something i did with another table with the relationship, rebuilding all the relationships seems to be working
Have you marked your Dates table as a date table in the model?
I've not, but I didn't yesterday and it was working. I've now found a soution which was to delete all the relationships, then start to rebuild them, I've only linked up the Date and the Office table, but it's now working fine, I must have done something when linking a table up this morning somewhere
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |