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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
HungFan
Regular Visitor

Why after unmark as date table, the time intelligence functions still work?

Hi all,
I have a measure with time intelligence function 'DATEADD' which is: 
Sales Amount PM =
CALCULATE(Tb_Sales[Sales Amount],DATEADD('Tb_Date'[Date],-1,MONTH))

Because I would like to check the function 'unmark as date table', I unmark as date table for Tb_Date and, of course, uncheck the auto date/time for new files in Options. However, the result come from the reprot didn't change. Could someone please tell me why?

Attached are my Model and report.
Screenshot 2023-01-08 at 8.15.01 AM.png

20230103_P40.png

 
 

 

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

In my opinion, for instance, if you create a relationship between the DATEKey column from the DATE table (20220101 -> number data type or text data type) and the OrderDateKey column from the Sales table (20220101 -> number data type or text data type), this will not work if you do not mark as a date table.

However, in this case, because you created a relationship between the Date column (Date data type) from the Date table and the OrderDate column (Date data type) from the Sales table, in most cases, it will work even without doing "mark as a date table".

This is especially when using time intelligent DAX function. In most cases, when you see time intelligence function, most of them refers to the Date column (Date data type) in the Date table. This creates something like "removing all filters in the Date table and then recreate filters as you wish". However, if the relationship is using datekey column (text data type or number data type), then time intelligence DAX function will not create "removing all filters in the Date table and then recreate filters as you wish" if you do not mark as a date table.

Please try adding one more column in the Date table and Sales table.

Date[DateKeyColumn] and Sales[OrderDateKeyColumn] those look something like, 20220101 (number data type or text data type), and then create a relationship based on the two newly created columns. And unmark as a date table. -> I think this will not work when you use time intelligence DAX function. 

Of course rest of measures will work those are not using time intelligence DAX function.

 

I hope this helps.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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