Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
With calculation group, how should we write DAX or setup for time intelligence analysis using multiple dates table (e.g. sales date, purchase date, inventory date)
For example (YTD Calculation) :CALCULATE(SELECTEDMEASURE(), DATESYTD(DimDate[Date]))
Can DimDate[Date]) be dynamic? What is the most efficient solution?
Thanks for your suggestion.
HI @crossboy,
Time intelligence functions required a calendar table with active relationships.
If you want to use date fields form other tables to interact with current measure formula, you need to confirm they existed active relationships.
If you can't confirm the relationship mapping, I'd like to suggest you change to use date functions that allow you manually defined and filtered on the table that your formula calculated.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
@crossboy , Check if,you can create inactive relation in the tabular edition. In Power BI we create multiple relations with date table and dates in fact and use userelation to activate them.
Example
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |