Forum Discussion
HenryJS
6 years agoPost Prodigy
Data Table: Weekend Ending Column
Hi all,
I have the below data table. I require 2 columns to be added:
- Week Ending
- Weeks denoted by ending on the Sunday for previous week
- i.e. Week Ending 12/04 is for the week 06/04/20 - 12/04/20
- Is it possible to have the Field Value of this column to be "Week No. 1 - WE 12/04"
- Quarter
- First week of Quarter is the Week Ending 12/04/20
Date Table:
Calendar = ADDCOLUMNS(CALENDAR(DATE(YEAR(MINX('Export Placements','Export Placements'[PlacementStartDate])),1,1),DATE(YEAR(MAXX('Export Placements','Export Placements'[PlacementDate])),12,31)
),"YEar",YEAR([Date]),"WeekNum",YEAR([Date])&"-"& FORMAT(WEEKNUM([Date]),"00"))
- Anonymous6 years ago
Hi HenryJS ,
Can I know which formula used in calculated column "Calendar'[WeekDay]"? It should be just like below one:
Calendar'[WeekDay]=WEEKDAY(Calendar[Date],2)
Best Regards
Rena
10 Replies
- Greg_DecklerCommunity Champion
- HenryJSPost Prodigy
Hi Greg_Deckler I need this for Columns in a Matrix.
It won't let me drag the mWeekEnding measure to columns for the matrix
- amitchandakSuper User
You can create a week ending measure like
"Week No. 1 - WE 12/04"
Ending = "Week No. 1 - WE " & Format([Week End date],"DD/MM")
For Week end date refer this file
https://www.dropbox.com/s/a9xq913pgvuzg2x/sales_analytics_weekWiseMon_sun.pbix?dl=0