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! Request now
Days between "Designstartdate" and "datesentforreview"
How do i achieve this?
Hi @Fphizal ,
Do you want to add a custom column to one table to calculate days between two date columns in two different tables?
Assuming that the REQID and RequestID columns have a one-to-one relationship, you can first establish a table relationship and then use DATEDIFF and RELATED to create the custom column.
Here is my test for your reference.
My tables.
The relationship.
The DAX.
CountDays = DATEDIFF(TableDate1[Designstartdate],RELATED(TableDate2[Datesentforreview]),DAY)
The result of my test.
Best regards,
Mengmeng Li
@Fphizal , Try creating a new measure using
Proud to be a Super User! |
|
@Fphizal , What is the relation between both tables
Proud to be a Super User! |
|
Many to many? Beginner at power bi, any advice how can i calculate the days between two diff data set.
@Fphizal , Create a new calculated column by going to modelling tab and click on new column
Proud to be a Super User! |
|
It gives me this
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.