Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi @Anonymous ,
Could you please mark the proper answers as solutions?
Best Regards,
Hi @Anonymous,
Please also try these functions.
sameperiodlastyear-function-dax
Best Regards,
Hi @Anonymous
Create a calendar table using CALENDARAUTO() function. Set relationship between this table and Tourtbl as one to Many.
Then create
_Lastmonth Count=CALCULATE(COUNTROWS('TourTbl'),DATEADD(Dates[Date],-1,MONTH)
Thanks
Raj
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 45 | |
| 30 |