The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
We need to generate a calender containing the dates for last 30 days in DAX. I cant seem to find a good solution for this. How do I pass correct parameters to the CALENDAR method?
Solved! Go to Solution.
HI @Abhaykumar
Please try the following code to create a calculated table.
Date Table = CALENDAR( TODAY()-30, TODAY() )
HI @Abhaykumar
Please try the following code to create a calculated table.
Date Table = CALENDAR( TODAY()-30, TODAY() )
can we do it for maximum date availabe in data instade of today
User | Count |
---|---|
75 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |