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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
BlueWhite3699
Helper III
Helper III

Extremely Tricky - Compare Same Period in the Previous Weeks and Months

Hi Experts

 

I am unable to get he chart and table as show in the image is have been banging my head against the wall on how to "Compare Same Period in the Previous Weeks and Months" 

 

BlueWhite3699_0-1752407613872.png

 

Want to be able to compare like for like so if the 02.12.2024 falls on a Monday and then ill be comparing that with 04.11/2024 for electricty usage on that day for that week. from the slicer ill select the first monday of the month...

 

Sample Data

https://www.dropbox.com/scl/fi/mvyt6d5qc9rfb6f40osqj/BlankPBIX.pbix?rlkey=6ac5yy4zpeyi0aru7v6vj5zav&... 

 

 

1 ACCEPTED SOLUTION

Comparing between months or quarters has limited business value because you are ignoring the impact of the seasonality.

View solution in original post

8 REPLIES 8
lbendlin
Super User
Super User

Weeks and Months are incompatible. You cannot reasonably expect to be able to compare them within each other.

Hi Ibendlin - much appericated for your excellent feed back as always whats is my best option to create something similar...

For a somewhat reasonable result use multiples of 7.  For example to compare weekdays across years you would use [date]-364 rather than SAMEPERIODLASTYEAR.

 

Comparing between months or quarters has limited business value because you are ignoring the impact of the seasonality.

I need to compare months with months...

Comparing between months or quarters has limited business value because you are ignoring the impact of the seasonality.

Under stand but the exam question here is to ignore  seasonality.

BlueWhite3699
Helper III
Helper III

Hi Post Patron - If the user selects Dec in the Slicer then the bar chart represents the Data for the period Dec 24 and the line chat should be the like for like data for Nov 24 .

Hence 02.12.2024 falls on a Monday and then ill be comparing that with 04.11/2024 and that week too. some month my have 4 and or 5 weeks. The Electricty usage.

FBergamaschi
Solution Sage
Solution Sage

Please provide a clearer explanation

 

Compare what? In what terms? What visuals? What columns?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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