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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I need 1 help with respect to Power BI Data Modelling and DAX.
Please add a Calendar table to your data model.
try two measures below, and if you encounter any issues, let me know.
Date Difference Measure =
DATEDIFF(
SELECTEDVALUE(PO_HEADERS_ALL[Creation_date]),
SELECTEDVALUE(PO_REQUISITION_HEADERS_ALL[Completion_date]),
DAY
)
Is Creation Before Completion =
IF(
SELECTEDVALUE(PO_HEADERS_ALL[Creation_date]) < SELECTEDVALUE(PO_REQUISITION_HEADERS_ALL[Completion_date]),
"Yes",
"No"
)
Did I answer your question? If so, please mark my post as the solution!
Your Kudos are much appreciated! Proud to be a Resolver III !