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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Baffy
New Member

BLANK result

Hi,

 

I have connected my data using microsoft sql server and I am having a little bit difficulty with time intelligence functions.

 

First of all my measure for YTD using  Dax function TOTALYD returns a blank result. I am a little bit confused here as i have checked my sql connection and everything seems to be right.

 

Dax = TOTALYTD([total Sales],'Date'[Date])

 

The result is blank.

1 REPLY 1
VahidDM
Super User
Super User

Hi @Baffy 

 

There are a few things that could be causing the TOTALYTD function to return a blank result in your case. Here are a few things you can check:

  1. Make sure that the column you are using as the date column in the TOTALYTD function is a date column and that it is formatted correctly. The column should be formatted as a date/time data type, and it should not contain any null or blank values.

  2. Check that your data has a continuous date range for the entire year. TOTALYTD function requires a continuous date range for the entire year to calculate the YTD value.

  3. Check that your data has a granularity of day. TOTALYTD function requires a granularity of day. So, the date column should have day level data.

  4. Check that your data has a complete year of data. TOTALYTD function requires a complete year of data. If your data only has data for a portion of a year, the function will return a blank result.

  5. Make sure that the date column is related to the table that contains the measure you're using in the TOTALYTD function.

  6. If your data includes duplicate date values, the TOTALYTD function might return a blank result. You can use the DISTINCTCOUNT function to check for duplicate date values in your data.

  7. If the above steps don't help, you can try to create a calculated table with the date column, and use this table as the date table in the TOTALYTD function.

If you're still facing the issue, you can provide more details about your data model and the relationship between the tables and the date column, that could help to find the root cause of the problem.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.