Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello Community - I am utilizing the DAX patterns formulas at this link. Their example follows a specific column (order date).
However, I have three such dates I would like to create time intelligence formulas for. Order Date is one of them, but also Ship Date, and Due Date. Due Date comes from the Orders table (just as Order Date does). Ship Date comes from our Shipping Table. Of course I will need to connect these to my date table, which I have done already.
But my question is really around this formula below. This formula is specifically for the Order Date, but I need this same formula applied to all three date fields. I was hoping not to have to create three seperate measures. Is there a way to combine those three date fields into this formula? For example, if I want to create a YTD measure for Orders (based on Order Date, and another measure for shipments YTD (based on ship date), I'd like to just be able to reference the same "showvaluefordates" measure in both YTD formulas. Possible, or do I need to create, and reference, three distinct measures for each scenario?
Standard time-related calculations – DAX Patterns
Solved! Go to Solution.
@Anonymous,
You can create a calculation group to switch between dates:
https://www.sqlbi.com/articles/using-calculation-groups-to-switch-between-dates/
Proud to be a Super User!
@Anonymous,
You can create a calculation group to switch between dates:
https://www.sqlbi.com/articles/using-calculation-groups-to-switch-between-dates/
Proud to be a Super User!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 42 | |
| 39 | |
| 32 |