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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I wrote the following DAX formula to return the items scheduled to close based on the range start date of the current date, and the end date equals the current date minus 90 days. When using the DAX Query View, my results are different than when I add the measure to a table using the calendar that has a relationship with the estimated closed date column from the open item table. I downloaded the Excel from DAX studio. The formula appears to do what I want, but I'm not confident because the values are not one-to-one. Here's the formula:
Hi @TateAtWork ,
You mentioned that the results in the DAX Query View are different from the results in the table visual object. This difference is usually related to a difference in context; the DAX Query View executes the query without relying on external context (e.g., rows, columns, slicers, etc.), whereas the metrics in the visual object are influenced by context, such as filters from other fields.
I'm not sure if your DAX formula is a measure or a calculated column, but if it is a measure, the earlier function won't work!
If you can provide some relevant example data or relevant pbix files, it may help to help you solve the problem faster, if you still have further questions, you can feel free to contact me, I will get back to you as soon as I receive the message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TateAtWork, give this a try, and if you encounter any issues, let me know.
VAR __calculatedTable =
CALCULATETABLE(
'open_item',
DATESBETWEEN(
'calendar_lookup'[Date],
__snapshotDate - 90,
__snapshotDate
),
'opportunity_stages'[Stage Name] = "Won"
)Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Specialist!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |