Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
cheeto92
Frequent Visitor

DAX for Week Over Week comparison between two years

Hi Everyone. I have a task where I need to calculate week over week lease renewal comparions between two years and broken down by Regions.

In my Renewal Report table I have a column named "Signed Date" where I can see that if there's a date in that row it means that there was a renewal signed. The below DAX calculcates for year over year but not week over week. I created a Calendar table that contains "Date" "Month""WeekNo" and "Year". The Calendar table has a One to Many relationship with the Renewal Report table. can someone pleaseee help! Thank you

Renewals_Current_and_Previous_FY_Percentage =

VAR Renewals_Current_FY =

    CALCULATE(

        COUNTROWS('Renewal Report'),

        FILTER(

            'Renewal Report',

            'Renewal Report'[FY] = 2024 && 'Renewal Report'[Signed Date] >= MIN('Calendar'[Date]) && 'Renewal Report'[Signed Date] <= MAX('Calendar'[Date])

        )

    )

 

VAR Renewals_Previous_FY =

    CALCULATE(

        COUNTROWS('Renewal Report'),

        FILTER(

            'Renewal Report',

            'Renewal Report'[FY] = 2023 && 'Renewal Report'[Signed Date] >= MIN('Calendar'[Date]) && 'Renewal Report'[Signed Date] <= MAX('Calendar'[Date])

        )

    )

 

VAR Total_Renewals = Renewals_Current_FY + Renewals_Previous_FY

VAR Total_Entries = COUNTROWS('Renewal Report')

12 REPLIES 12
talespin
Solution Sage
Solution Sage

@cheeto92 

 

Please share some raw data in table form that covers your scenario.

cheeto92_0-1712246633941.png     

cheeto92_1-1712246667534.png

 

The excel table and the chart is what i need to recreate in Power BI. I created two measures in Power BI like this: 

Signed_Renewals_2023 =
    CALCULATE(
        COUNTROWS('Renewal Report'),
        FILTER(
            'Renewal Report',
            'Renewal Report'[FY] = 2023 &&
            NOT(ISBLANK('Renewal Report'[Renewals Signed Date]))
        )
    )
Signed_Renewals_2024 =
    CALCULATE(
        COUNTROWS('Renewal Report'),
        FILTER(
            'Renewal Report',
            'Renewal Report'[FY] = 2024 &&
            NOT(ISBLANK('Renewal Report'[Renewals Signed Date]))
        )
    )
 

I need to show the %ofRenewals signed this week last year vs %of Renewals signed this week of current year. This is what the bar chart is showing for the central region

Fiscal YearRenewals Signed DateRegions (Central, West, East)
202302/05/23Central
202302/03/23Central
202302/02/23Central
202402/02/24Central
202402/02/24Central
202402/02/24Central
202402/02/24Central
cheeto92
Frequent Visitor

@amitchandak @talespin any advice please?

cheeto92
Frequent Visitor

@lbendlin any advice please 🙂

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

The columns in this table is what should be used to build the report. Basically in the first week of February 2023 (FY) we had 3 renewals signed vs the first week of February 2024 (FY) we have 4 renewals signed. I need to show week over week comparison between the two fiscal years. This data should be shown as a percentage and also I want to show the week over week percentage change between them.

Fiscal YearRenewals Signed DateRegions (Central, West, East)
202302/05/23Central
202302/03/23Central
202302/02/23Central
202402/02/24Central
202402/02/24Central
202402/02/24Central
202402/02/24Central

This is the outcome i need to show for all regions for week over week (2023 vs 2024)

cheeto92_0-1711999376666.png

 

please explain how you get the expected outcome from the sample data you posted.

I need to get a total count of signed renewals for FY23 and FY24 and then break it down by Region and then extract the Date from the Renewals Signed Date column. I then have to Divide the Renewals Signed for the week by the Total Count of Renewals Signed. I hope the data below clarifies your question:

cheeto92_0-1712002581018.png

 

FYI, "Advisors" is a region 



second request: Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

FY23      
RegionsTotal CountSigned YTD% Signed       Last Week% Signed Last Week       Change from Last Week
Central72932144%26436%8%
West62220533%15325%8%
East64425840%18028%12%
BA1855128%3821%7%
TOTAL2180835
 

38%

63529%9%

 

FY24      
RegionsTotal CountSigned YTD% Signed       Last Week% Signed Last Week       Change from Last Week
Central61728446%23638%8%
West53025448%20338%10%
East59127647%24541%5%
BA1376346%4432%14%
TOTAL187587747%72839%8%

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.