Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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 |
|---|---|
| 50 | |
| 40 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 87 | |
| 73 | |
| 37 | |
| 28 | |
| 26 |