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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Experts
Please help me to get the difference between Order date (fact table that) and Calendar date (User input date through slicer. This calendar has been generated by using DAX ) I have created the DAX measure as below, which is not working fine.
DifferenceOfPostingAndInputDate = DATEDIFF(FIRSTDATE('Sales'[Posting Date ]), FIRSTDATE('Date'[Calendar Date]),DAY )
FYI : I have already created a relationship between fact table and calender table.
Thanks in advance.
Hi,
Do you get a different result when you use this formula?
=MIN('Date'[Calendar Date])-MIN('Sales'[Posting Date ])
Which one of them gives you the correct answer?
Hi,
The one i proposed should give you the correct answer.
Hi @Divya904,
Please help me to get the difference between Order date (fact table that) and Calendar date (User input date through slicer. This calendar has been generated by using DAX ) I have created the DAX measure as below, which is not working fine.
DifferenceOfPostingAndInputDate = DATEDIFF(FIRSTDATE('Sales'[Posting Date ]), FIRSTDATE('Date'[Calendar Date]),DAY )
FYI : I have already created a relationship between fact table and calender table.
Could you show the screenshot why the formula does not work fine? And what is your expected output.
If it is convenient, could you share some data sample which could reproduce your scenario, so that we can help further investigate on it?
Best Regards,
Cherry
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.