Forum Discussion
User to Select Week Start Day
- 9 years ago
According to your desription, you want to display the dynamic "Fiscal Weekday" based on the selection from users to determine which day is the first day of the week. Right?
In this scenario, you can create another table for user selecting which day as first day. I assume you have two tables like below:
Then create a calculated table to CROSSJOIN above two tables:
Table = CROSSJOIN('Weekday',FirstWeekDaySelection)It will be like:
Now you just need to create a calculated column to show the dynamic Fiscal Weekday.
Fiscal Weekday = IF ( 'Table'[WeekDay] >= 'Table'[FirstWeekdaySelection], 'Table'[WeekDay] - 'Table'[FirstWeekdaySelection] + 1, 'Table'[WeekDay] - 'Table'[FirstWeekdaySelection] + 8 )Regards,
According to your desription, you want to display the dynamic "Fiscal Weekday" based on the selection from users to determine which day is the first day of the week. Right?
In this scenario, you can create another table for user selecting which day as first day. I assume you have two tables like below:
Then create a calculated table to CROSSJOIN above two tables:
Table = CROSSJOIN('Weekday',FirstWeekDaySelection)
It will be like:
Now you just need to create a calculated column to show the dynamic Fiscal Weekday.
Fiscal Weekday =
IF (
'Table'[WeekDay] >= 'Table'[FirstWeekdaySelection],
'Table'[WeekDay] - 'Table'[FirstWeekdaySelection]
+ 1,
'Table'[WeekDay] - 'Table'[FirstWeekdaySelection]
+ 8
)
Regards,
Hi,
Thanks for your input.
I think I understand your solution so will try later today to implement it.
I will keep you posted.
Thanks again for your help in this matter.
Cheers,
Alex
- Anonymous4 years agoNot applicable
AC1 did you resolved this using the explanation?
v-sihou-msft I do not fully understand your solution. Can you also this functionality to a Date / Calendar table?