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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Power BI community!
I need some help trying to find the difference in months between the most recent date entry and the second most recent date entry.
I have two measures to find these dates:
Both of these measures seem to return the correct dates.
Next I created a calculated column to find the DateDiff:
Solved! Go to Solution.
Hi @rweb95 -
By using measures to create a column, the context for the column calculation is just the row itself, which is only going to have one date on it.
If you want to display the date difference as a "column" in a table or matrix, use the same formula but change the column to a measure and add it to your visualization. This will calculate the value in the correct context.
Hope this helps
David
Hi @rweb95 -
By using measures to create a column, the context for the column calculation is just the row itself, which is only going to have one date on it.
If you want to display the date difference as a "column" in a table or matrix, use the same formula but change the column to a measure and add it to your visualization. This will calculate the value in the correct context.
Hope this helps
David
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 17 | |
| 14 | |
| 13 |