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

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

Reply
NDYKES
Frequent Visitor

Fiscal week on Fiscal Week change calculation not working. Social Dashboard

Hello,

 

I have attatched the PBIX file for reference, am a bit stuck on something.

 

I am building a social media dashboard to track weekly performance across key metrics, I run the data daily [dateran] and I capture all active posts on the page usually the most recent X [timeposted].

 

I want to compare this fiscal weeks performance by last fiscal week which in theory sounds easy but I keep getting errors, I lookeed at this but to no avail.

 

https://community.powerbi.com/t5/Desktop/Week-over-Week-Change/m-p/245447#M108771

 

As you can see here when I look at the data for Brand A and B by fiscal year the sum of likes table changes, however across my 3 calculated columns, posted TW, posted LW and a test calculation from above I get different but wrong results each time.

 

image.png

 

A simple version of my table structure is below and it is joined to a date table with timeposted linked to date.

image.png

 

Below is a we transfer link to my PBIx example file

 

https://wetransfer.com/downloads/b7bc0ef6a8e7421657256bbdd381676620190731131813/7fa7532f67656d139adb...

 

 

Any help would be appreciated greatly.

 

Thanks

 

Nick

 

 

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @NDYKES ,

I created a measure using the following foemula. Is this what you want?

Measure = CALCULATE(SUM(Brands[likes]),FILTER(ALLEXCEPT(Brands,Brands[brand]),Brands[Fiscal Week] = MAX(Brands[Fiscal Week])-1))

1.PNG

 

Best Regards,

Xue

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

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

View solution in original post

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @NDYKES ,

I created a measure using the following foemula. Is this what you want?

Measure = CALCULATE(SUM(Brands[likes]),FILTER(ALLEXCEPT(Brands,Brands[brand]),Brands[Fiscal Week] = MAX(Brands[Fiscal Week])-1))

1.PNG

 

Best Regards,

Xue

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

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

Beautiful!

 

Thank you so much

 

 

NDYKES
Frequent Visitor

EDIT: 

 

My formula are as such:

 

Sum of likes LW = CALCULATE([Sum of Likes],Brands[7 Days Ago])
Sum of likes posted LW 2 = CALCULATE([Sum of Likes],DatesPost[Last Fiscal Week])
Sum of likes posted TW = CALCULATE([Sum of Likes],Brands[Fiscal Week]-1)

@NDYKES wrote:

Hello,

 

I have attatched the PBIX file for reference, am a bit stuck on something.

 

I am building a social media dashboard to track weekly performance across key metrics, I run the data daily [dateran] and I capture all active posts on the page usually the most recent X [timeposted].

 

I want to compare this fiscal weeks performance by last fiscal week which in theory sounds easy but I keep getting errors, I lookeed at this but to no avail.

 

https://community.powerbi.com/t5/Desktop/Week-over-Week-Change/m-p/245447#M108771

 

As you can see here when I look at the data for Brand A and B by fiscal year the sum of likes table changes, however across my 3 calculated columns, posted TW, posted LW and a test calculation from above I get different but wrong results each time.

 

image.png

 

A simple version of my table structure is below and it is joined to a date table with timeposted linked to date.

image.png

 

Below is a we transfer link to my PBIx example file

 

https://wetransfer.com/downloads/b7bc0ef6a8e7421657256bbdd381676620190731131813/7fa7532f67656d139adb...

 

 

Any help would be appreciated greatly.

 

Thanks

 

Nick

 

 



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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors