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! Get ahead of the game and start preparing now! Learn more
Hallo
I have two tables
I added a YTD measure to the Orders:
Orders YTD = TOTALYTD( SUM(Orders[Amount]) ; Calendar[Date] );
When I use it within a Card visual, I get a "(Blank)" value
Everything shows ok If I swap the Calendar[Date] with a Orders[Date], like this:
Orders YTD = TOTALYTD( SUM(Orders[Amount]) ; Orders[Date] );
What am I missing?
Thanks in advance
Solved! Go to Solution.
The issue is likely that you need to tell PBI what year it is, either by using a page/report level filter in PBI or a slicer in the report itself. The time-intelligence functions in DAX will default to the max year in your dates table if you do not tell PBI what year it is. Therefore, if you have the calendar table that goes out to 2018, the measure will show blank unless you tell PBI that the year is 2017.
Here's a little extra two cents, but I always prefer to have a trimmed calendar table. What I mean is, you can trim your calendar to not have dates that go beyond the max value you have in your sales fact table.
The issue is likely that you need to tell PBI what year it is, either by using a page/report level filter in PBI or a slicer in the report itself. The time-intelligence functions in DAX will default to the max year in your dates table if you do not tell PBI what year it is. Therefore, if you have the calendar table that goes out to 2018, the measure will show blank unless you tell PBI that the year is 2017.
Here's a little extra two cents, but I always prefer to have a trimmed calendar table. What I mean is, you can trim your calendar to not have dates that go beyond the max value you have in your sales fact table.
Hmm, perhaps add an additional parameter to TOTALYTD or ALL(Calendar):
https://msdn.microsoft.com/en-us/library/ee634400.aspx
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 |
|---|---|
| 58 | |
| 43 | |
| 41 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 121 | |
| 96 | |
| 65 | |
| 46 |