Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
i tried to get the number of rows from the same period of last year, and use this measure:
Solved! Go to Solution.
Yes, you would want to create a date table and relate that to your main table. You can create a calendar easily using CALENDARAUTO() or the CALENDAR functions when creating a caclulated table.
https://docs.microsoft.com/en-us/dax/calendar-function-dax
Then from there you want to be sure to mark that as date table:
Datesbetween is a time-intelligence function, and as such requires a dedicated date table to work correctly. Do you have a data table?
Nope. all the fields are from the same table. Do i have to create another data table to connect with my original table?
thanks
Yes, you would want to create a date table and relate that to your main table. You can create a calendar easily using CALENDARAUTO() or the CALENDAR functions when creating a caclulated table.
https://docs.microsoft.com/en-us/dax/calendar-function-dax
Then from there you want to be sure to mark that as date table:
thanks! i saw this kind of method somewhere when we create KPI. may i ask why we need this date table?
thanks
Hi,
With a Calendar Table in place, you will be able to use the Date and Time Intellignece functions of DAX with ease.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |