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.
Hi
I have a spreadsheet that contains open ticket information. We have added a column called Reporting Date which captures when the report was downloaded to help us with doing some snapshot trending. Usually it is done once a week but sometimes the interval can be 10 days or more.
I want to be able to index or give a number to these reporting dates
For instance, the last reporting date was 1/21. so that row should contain 0 and the previous reporting period was 1/14...so those rows to contain -1
Report date Relative Index
1/21/2018 0
1/21/2018 0
1/14/2018 -1
1/21/2018 0
1/7/2018 -2
Solved! Go to Solution.
@svishwanathan,
A bit change to Phil_Seamark's DAX formula.
Column = VAR x = MAX(Table[Report Date]) - (WEEKDAY(MAX(Table[Report Date]),1)-1) RETURN-DATEDIFF(Table[Report Date],x,WEEK)
Regards,
Lydia
@svishwanathan,
A bit change to Phil_Seamark's DAX formula.
Column = VAR x = MAX(Table[Report Date]) - (WEEKDAY(MAX(Table[Report Date]),1)-1) RETURN-DATEDIFF(Table[Report Date],x,WEEK)
Regards,
Lydia
Column = VAR x = TODAY() - (WEEKDAY(TODAY(),1)-1) RETURN-DATEDIFF('Table2'[Report Date],x,WEEK)
This calculated column may be what you are after
Are the dates always Sunday?
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |