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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.