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! It's time to submit your entry. Live now!
Hey everyone,
I have the below measure that I am trying to calculate, but I cannot figure out why the dates between section is not filtering the data. The result is showing "Blank", but according to the data in the table view, I should have hundreds. I checked the relationships and the column formats and they are set correctly to date/time.
Solved! Go to Solution.
Hi @dbrandone ,
Please check the relationship between your calendar table and vsales table. It should be one to many active relationship.
You can also use the following measure:
Items sold Last Month =
VAR vToday =
TODAY ()
VAR vEndDate =
EOMONTH ( vToday, -1 )
VAR vResult =
CALCULATE(
COUNT(vSales[ItemSold]),
DATESINPERIOD('Calendar'[Date], vStartDate, 1,MONTH)
)
Return
vResult
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @dbrandone ,
the 'Calendar'[Date].[Date] looks wrong, it should be 'Calendar'[Date].
Please check if you have marked your Calendar table as a date table.
https://www.sqlbi.com/articles/mark-as-date-table/
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener ,
Yeah, I noticed that. I tried both 'Calendar[Date]' and 'Calendar[Date].[Date]' and both are having issues. I was trying anything I could at that point. I think I tried the .[Date] at the end since intellisense was offering it. I checked and it is marked as the date table.
Hi @dbrandone ,
Please check the relationship between your calendar table and vsales table. It should be one to many active relationship.
You can also use the following measure:
Items sold Last Month =
VAR vToday =
TODAY ()
VAR vEndDate =
EOMONTH ( vToday, -1 )
VAR vResult =
CALCULATE(
COUNT(vSales[ItemSold]),
DATESINPERIOD('Calendar'[Date], vStartDate, 1,MONTH)
)
Return
vResult
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @dbrandone ,
it works in my sample file.
(see attached file)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @dbrandone ,
can you provide a sample file?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 129 | |
| 105 | |
| 56 | |
| 39 | |
| 32 |