Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All,
I am trying to create a measure that will tell me the difference between two dates for a Credit that a user has filtered on. Here is my code:
DaysbetweenAssgined&Claimed =
var Startdate = if(CONTAINSSTRING('SpecConnect History'[Event],"Credit Awarded"),'SpecConnect History'[TimeStamp])
Var Enddate = if(CONTAINSSTRING('SpecConnect History'[Event],"Customer Survey Submitted"),'SpecConnect History'[TimeStamp])
return
DATEDIFF((Startdate,Enddate,days)
I do not think I am doing my If's correctly. Any suggestions?
Cheers!
Peter
@pkoel-asb , in this case quite a few dates would be blank ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hello,
Thank you for the reply. Here is an image:
Hello,
I have been able to create a test measure below:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |