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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gelkins81
New Member

Week Over Week Change for Scorecards

Hi everyone!

 

New to the forums and looking for some help.

I'm trying to have a WoW percent change scorecard underneath the main KPI scorecard, but having an issue with it returning the total result instead of the individual row result.  Here is an example screenshot:

gelkins81_0-1737039550745.png

 

Ignore the (Blank).  Those are from a previous build where I was doing MoM using Parallelperiod, which works great.  Unfortunately Parallelperiod doesn't, currently, support Weeks so this is not an option, to my knowledge.

 

As for my calculations:

 

Year Week =
VAR _YearCurrentRow = YEAR(Oneview[Date])
VAR _MonthCurrentRow = MONTH(Oneview[Date])
VAR _WeekCurrentRow = WEEKNUM(Oneview[Date],21)
VAR _YearReturn = IF(_WeekCurrentRow > 50 && _MonthCurrentRow = 1, _YearCurrentRow - 1, _YearCurrentRow)
RETURN
_YearReturn * 100 + _WeekCurrentRow

 

Oneview_Previous_Week_Impression = CALCULATE(SUM(Oneview[Oneview_Impressions]),OFFSET(-1,,ORDERBY('Oneview'[Year Week])))

Oneview_Previous_Week_Percent_Impressions =
CALCULATE(DIVIDE(SUM(Oneview[Oneview_Impressions])-[Oneview_Previous_Week_Impression],[Oneview_Previous_Week_Impression],0))
 
Any ideas from anyone?
 
Thanks in advance!
5 REPLIES 5
bhanu_gautam
Super User
Super User

@gelkins81 Calculate the Previous Week Impressions:

Oneview_Previous_Week_Impression =
CALCULATE(
SUM(Oneview[Oneview_Impressions]),
FILTER(
Oneview,
Oneview[YearWeek] = EARLIER(Oneview[YearWeek]) - 1
)
)

 

Calculate the WoW Percent Change:

Oneview_Previous_Week_Percent_Impressions =
DIVIDE(
SUM(Oneview[Oneview_Impressions]) - [Oneview_Previous_Week_Impression],
[Oneview_Previous_Week_Impression],
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks for such a quick response!

 

I did try this solution, but am getting an error with the Earlier function:

gelkins81_0-1737040685968.png

 

Thoughts?  Sorry, I am somewhat new to Dax as I used Tableau at my previous agency and where I am now uses PowerBi.  I've learned a lot over the past 6 months, but there's a lot of different functions that I just don't know about yet.  Thanks!

Use DATE ADD instead of earlier 

dax
Oneview_Previous_Week_Impression =
CALCULATE(
SUM(Oneview[Oneview_Impressions]),
DATEADD(Oneview[Date], -7, DAY)
)

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






This is outputting the wrong amount:

 

gelkins81_0-1737050066253.png

 

When I don't have the filter, the table outputs the correct amount on the row, but not at the total.  I need to figure out a way to output the row amount and not the total.

Anonymous
Not applicable

Hi, @gelkins81 

 

Can you provide some of the sample data and what you expect the output to be? Please remove any sensitive data in advance. How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.