March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I would like to index the dates of each year (2019, 2020, 2021) so that I can match the index to the previous year's date.
So 2019 would have the index on the dates, and then I could match the 2020 index to the 2019 dates. Kind of like SamePeriodLastYear, but I am not able to use this with my current data, as the original ID's are all different throughout the years. Please help, I can explain more if needed. I am looking at quotes sent throughout the years, and would like to compare then YoY, but cannot do so without being able to connect the quotes to a primary key. I was thinking the index would become the primary key. Thank you in advance.
Solved! Go to Solution.
Hi,
I am not sure if I follow, what you are describing would be day of year? You can get day of year with this calculated column dax:
Proud to be a Super User!
Hi,
I am not sure if I follow, what you are describing would be day of year? You can get day of year with this calculated column dax:
Proud to be a Super User!
Thank you! Will this work year over year? So I would like a 1-365 from 2019, but also 1-365 to 2020, and so on. Would I need seperate date tables for this?
You would need separated table or some other logic to address leap years. The problem is that leap years will have numbers from 1-366.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |