I've gotta thank @Anonymous for the response to that post. That info got me closer than I had been after working on the issue for a while.
I'm trying to project closed files for my company, for the "current month" whenever the current month is. Typically, a relative date filter would work well. However, in this case we base look at upcoming closings based on one date and closings that occurred are based on another date. Here's the measure I created (I know it's busy).
I don't get any error, however, my result for the current month is 3,200+ and it should be more like 750-ish (93 remaining and 669 occurred)
I think breaking it up into three measures has some merit and I like the commenting what I'm doing in the variable so that it is easy to see what's going on.
@ValtteriN thank you for thos suggestions. I think I found out why I'm getting more results than anticipated with the "remaining" measure.
I told it to just return the "_MaxDateClosingsRemaining" so that I could make sure it was looking at June 30th. When I did that, it errored out, as shown below.
This does make sense, since we'd have multiple files with the same settlement date. Any ideas how to resolve this issue?
Hi,
For the sake of organising I would split this into three measures:
[NetClosingsRemaining], [NetClosingsOccurred] and [TotalProjClosings]
This has the benefit of being easier to troubleshoot and it this way you can re-use your measures in different contexts.
For your issue, as you stated I can't see any problems with the dax and since I don't have test data I don't know where the issue is. However here is your syntax as I understood it. Does this match your expected logic:
Proud to be a Super User!
@ValtteriN I can't accept it as solved yet. Here's what I wrote in response to your suggestion.
I think breaking it up into three measures has some merit and I like the commenting what I'm doing in the variable so that it is easy to see what's going on.
@ValtteriN thank you for thos suggestions. I think I found out why I'm getting more results than anticipated with the "remaining" measure.
I told it to just return the "_MaxDateClosingsRemaining" so that I could make sure it was looking at June 30th. When I did that, it errored out, as shown below.
This does make sense, since we'd have multiple files with the same settlement date. Any ideas how to resolve this issue?