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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Vari209
Frequent Visitor

Week Over Week Percent Change in a table or Matrix table by Supplier or Department

Hey all,

Looking for some help please 😊 I am trying to figure out week over week percent change by Supplier or department in separate tables not a graph as I was able to get that with a dates table (i.e Supplier 1, Supplier 2 – % change from previous week).

What I am encountering is totals in the table returning the same values. Would any one be able to help me with this please.

 

I was able to display this in a chart using the below dax (Screen shot highlighted below), but want to see it in a table or matrix table.

 

Measure =

VAR lastWeekAmount =

    CALCULATE (

        SUM ( Append1[Video Views] ),

        FILTER (

            ALL ( 'Calendar' ),

            'Calendar'[WeekNum]

                = MIN ( 'Calendar'[WeekNum] ) - 1

        )

    )

RETURN

    DIVIDE (SUM (Append1[Video Views] ) - lastWeekAmount, lastWeekAmount, 0 )

 

Vari209_0-1675434806074.png

Vari209_0-1675434971281.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Vari209 , Can you highlight what is wrong. The formula can be run on week rank 

 

Have these new columns in Date Table, Week Rank is Important in Date/Week Table

Week Rank = RANKX('Date','Date'[Week Start date],,ASC,Dense)
OR
Week Rank = RANKX('Date','Date'[Year Week],,ASC,Dense) //YYYYWW format

 

 

These measures can help
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Hi Amitchandak, 

 

Thank you so much for the quick response! 🙂 I would like to show the percent change from the previous week for a specific groupling - for example the screen shot below in excel is showing Facebook current week amount total for 91-180 days is $4M and the % change from the previous week is -4%. How would I show this exact example in a table or matrix in PowerBi. I was able to show this is in a graph, but only by selecting on a departmentr filter for each one rather than have the totals and percenategs all in one table. 


Vari209_0-1675450210796.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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