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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I want to find the difference between a past date and todays date, which I have done with this formula
| ID | Review | Return Date | Months Between |
| 1 | 01/10/2021 | ||
| 2 | 06/05/2021 | 05/03/2022 | |
| 3 | 24/03/2022 | ||
| 4 | 17/06/2022 | ||
| 5 | 01/05/2021 | 12/12/2021 |
So I want to do months between the review date and today if the return date is blank. If it is not blank do the months between the return date and today.
Hope that makes sense any help is appreciated
thanks
Solved! Go to Solution.
Hey @WJ876400 ,
Here, try this:
MonthBetweenColumn =
if('Table'[Return Date] <> BLANK(),DATEDIFF('Table'[Return Date],TODAY(),MONTH),DATEDIFF('Table'[Review],TODAY(),MONTH))
Are you looking for this?
Hey @WJ876400 ,
Here, try this:
MonthBetweenColumn =
if('Table'[Return Date] <> BLANK(),DATEDIFF('Table'[Return Date],TODAY(),MONTH),DATEDIFF('Table'[Review],TODAY(),MONTH))
Are you looking for this?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |