Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Blank result with TYD Calculation

Hi everybody 

 

I am trying to do a YTD calculation, the measure works well till it find a blank count in a date. The key points are:

 

Measure 

 

**bleep**. Count = 

CALCULATE (
TOTALYTD (
'Measures Table'[Count)], // The measure makes just a simple row count filter by some fields
DATESYTD ( 'Date'[CalendarDate] )
)
 
Result
I am getting the result show in the image below, however I would like to see in May a total of 17 and not blank. I've already tried adding a + 0 to the measure but I just get 0 in the **bleep**.Count for may. I already tried everything I have found on the forums but have not got my desired result.
MarcelaB_0-1657707016134.png

Thanks a lot.

1 ACCEPTED SOLUTION

@Anonymous , check one more thing. Join is single directional

 

If this does not help
Can you share a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , the month name in the visual is coming from the date table? if not then its should come from that. Also, make sure you marked the date table as date table

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak yes the month comes from the Date Table and the table is marked as date table

@Anonymous , check one more thing. Join is single directional

 

If this does not help
Can you share a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak thanks a lot, the Cross Filter Direction of the relation was set to both I changed to single and it solved my problem. 

@Anonymous , Good it get solved.

 

There can 6 reasons - Listed in this blog-https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

 


Use Date Table (Join with Fact Date)
The date table is marked as a date table
Use columns from the date table
The date does not have a timestamp
The date table has all dates

Other than these, bidirectional join with date table can also cause failure, because this can filter dates on date table and we might lose continuous dates.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.