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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.