periodOverPeriodPercentDifference(sum(Sales), {Order Date}, WEEK, 1)

0

I want to change the 'WEEK' period to Mon - Sun , how do I change it? Or is there any formula to calculate WoW growth?

已提問 1 年前檢視次數 236 次
1 個回答
0

Hello,

QuickSight defines Sunday as the start of the week, by default. Upon checking internally, we can make use of the following calculated field formula to group dates by weeks starting on Monday. Please replace {date} with the field name at your end

addDateTime(
    1, 
    'DD', 
    truncDate(
        'WK',
        ifelse(
            extract(
                'WD',
                {date}
            ) = 1, 
            addDateTime(
                -1, 
                'DD', 
                {date}
            ), 
            {date}
        )   
    )
)

There is an existing feature request internally to support custom week start day/date and the internal QuickSight product team is working on it. Unfortunately, we do not have an ETA at the moment for when this feature would be available, but would I recommend you to refer to the following for further updates :

[+] https://aws.amazon.com/it/blogs/aws/category/amazon-quicksight/

[+] https://docs.aws.amazon.com/quicksight/latest/user/WhatsNew.html

Reference: [+] https://stackoverflow.com/questions/55117362/start-week-on-monday-in-aws-quicksight/55857785#55857785

==========

Regarding WoW growth calculation, we can make use of the percentDifference calculated field like the below. Please replace Value, Date with the field names at your end.

percentDifference(Value, [Date ASC], -1)

[+] percentDifference - https://docs.aws.amazon.com/quicksight/latest/user/percentDifference-function.html

Thanks

AWS
支援工程師
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南