<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh" -->

---
title: Does Calendar-Based Time-Intelligence Change Custom Logic?
description: Calendar-based Time Intelligence in DAX simplifies some custom calculations but doesn't eliminate the need for custom logic entirely. The article demonstrates...
canonical: https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Does Calendar-Based Time-Intelligence Change Custom Logic? | daily.dev
og:description: Calendar-based Time Intelligence in DAX simplifies some custom calculations but doesn't eliminate the need for custom logic entirely. The article demonstrates...
og:url: https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh
og:image: https://api.daily.dev/og/posts/x9C9izFbh.png
og:image:alt: Does Calendar-Based Time-Intelligence Change Custom Logic?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Does Calendar-Based Time-Intelligence Change Custom Logic?

**[Towards Data Science](https://daily.dev/sources/tds)** · 8 min read · 0 upvotes · 0 comments

## Summary

Calendar-based Time Intelligence in DAX simplifies some custom calculations but doesn't eliminate the need for custom logic entirely. The article demonstrates calculating rolling averages using standard Gregorian calendars, custom calendars (15 months with 31 days each), and weekly calendars. While standard calendars work seamlessly with DATESINPERIOD(), custom calendars without date columns require manual logic using ID ranges or row ranks. Performance optimization techniques include using TOPN() or RowRank columns, with execution times ranging from 100-500ms. Weekly calculations are now possible with calendar-based Time Intelligence, though semester intervals still require custom code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdatascience.com/does-calendar-based-time-intelligence-change-custom-logic/>

## Similar posts on daily.dev

- [How to Implement Three Use Cases for the New Calendar-Based Time Intelligence](https://daily.dev/posts/how-to-implement-three-use-cases-for-the-new-calendar-based-time-intelligence-ctqfv8kwy) · Towards Data Science · 0 upvotes · 0 comments
- [When Things Get Weird with Custom Calendars in Tabular Models](https://daily.dev/posts/when-things-get-weird-with-custom-calendars-in-tabular-models-nffj1usyx) · Towards Data Science · 0 upvotes · 0 comments
- [Weekly Calculated](https://daily.dev/posts/weekly-calculated-vuxtrxuzk) · The Daily WTF · 0 upvotes · 0 comments
- [Advanced DAX in Power BI: Using CALCULATE\(\) and IF\(\) to Answer Business Questions](https://daily.dev/posts/advanced-dax-in-power-bi-using-calculate-and-if-to-answer-business-questions-ntwowknj2) · Medium · 0 upvotes · 0 comments

---

Tags: [#data-science](https://daily.dev/tags/data-science), [#data-analysis](https://daily.dev/tags/data-analysis), [#bi](https://daily.dev/tags/bi), [#power-bi](https://daily.dev/tags/power-bi)

[View this post on daily.dev](https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Does Calendar-Based Time-Intelligence Change Custom Logic?","url":"https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh"},"datePublished":"2026-01-20T18:48:59.162Z","dateModified":"2026-01-20T18:50:04.846Z","description":"Calendar-based Time Intelligence in DAX simplifies some custom calculations but doesn't eliminate the need for custom logic entirely. The article demonstrates...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6cdb30a291ab5c2132b0b46d1c36f93a?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6cdb30a291ab5c2132b0b46d1c36f93a?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Towards Data Science","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Towards Data Science","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/tds","url":"https://daily.dev/sources/tds"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/does-calendar-based-time-intelligence-change-custom-logic--x9c9izfbh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"data-science,data-analysis,bi,power-bi","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Towards Data Science","item":"https://daily.dev/sources/tds"},{"@type":"ListItem","position":3,"name":"Does Calendar-Based Time-Intelligence Change Custom Logic?"}]}
```

