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! It's time to submit your entry. Live now!
I want to get the difference between first transaction and recent transaction How can I create a measure to do that and if i can get the answer in months it would be ideal
bvet
Solved! Go to Solution.
Hi @ligalbert
You currently have 3 columns in the table visual, and want to add the date difference in month in the table visual as well, right? Here is one way
Diff=DATEDIFF(MAX(yourTable[First Order Date]),MAX(yourTable[Recent Order Date]),MONTH)
Hi @ligalbert
You currently have 3 columns in the table visual, and want to add the date difference in month in the table visual as well, right? Here is one way
Diff=DATEDIFF(MAX(yourTable[First Order Date]),MAX(yourTable[Recent Order Date]),MONTH)
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 35 | |
| 24 | |
| 22 |
| User | Count |
|---|---|
| 135 | |
| 111 | |
| 57 | |
| 44 | |
| 38 |