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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
crossboy
New Member

Q? Calculation group with multiple dates table (Using tabular editor)

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.

2 REPLIES 2
Anonymous
Not applicable

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

amitchandak
Super User
Super User

@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

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.