Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a table that contains, among many others, fields called "DateScreened" and "DateOffered".
I need to create a new column ("Date Screeened to Date Offered") that shows the number of days between the 2 dates, but only when both are populated (it is not mandatory for either of these rows to be populated).
My new column is currently built like this:
Solved! Go to Solution.
Hi @OobuJoobu,
How about this:
Date Screeened to Date Offered =
IF (
OR ( ISBLANK ( [DateOffered] ), ISBLANK ( [DateScreened] )),
BLANK(),
[DateOffered] - [DateScreened]
)
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Hi @OobuJoobu,
How about this:
Date Screeened to Date Offered =
IF (
OR ( ISBLANK ( [DateOffered] ), ISBLANK ( [DateScreened] )),
BLANK(),
[DateOffered] - [DateScreened]
)
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Absolutely perfect, thank you!
Hi,
You can try below DAX
Date Screened to Date Offered = IF( [DateScreened] = BLANK(), BLANK(),[DateOffered] - [DateScreened])
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
Thank you, I expect that works perfectly, I've already tried the solution from @tackytechtom whch does the job lso.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 31 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 79 | |
| 68 | |
| 43 | |
| 26 | |
| 23 |