Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 ! 
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |