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
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.
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:
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.
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.
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.
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.
Make sure that the date column is related to the table that contains the measure you're using in the TOTALYTD function.
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.
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!!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
96 | |
91 | |
82 | |
69 |
User | Count |
---|---|
159 | |
125 | |
116 | |
111 | |
95 |