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
Anonymous
Not applicable

Getting prior week measure that will dynamically change with slicer

HI, I don't know if anyone can help me.

 

I'm looking to recreate a table like the below (where 'LM' = last month) but by week. I don't seem to be able to work out how to do it. I'm using a column of 'week commencing', and have tried the below, but it just doesn't work. Any ideas so welcome!! It's all pulling from a spreadsheet. I'm not sure how to upload data for people to see?

 

thanks,

 

Gem

 

LW Income = CALCULATE([Total Single Gift Income],DATESINPERIOD(Sheet1[Week Commencing],MAX(Sheet1[Week Commencing]),-1*7,Day))

 

g_l_dixon_0-1632496419784.png

 

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

Do you want to add the week field and calculate the income of the week, or change the measure of calculating the month to the calculation week based on the month field. If it is the latter, how do you determine the date of the week, the last week of the month? Or?
Could you share some dummy data and draw a simple picture to show your expected visual for further discussion?

 

refer:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, I currently have a matrix like this. I want to add in Last week open rate as a measure, last week's CTR as a measure (etc.) I can share data, but there are a lot of measures as well... I'm not sure how to share pbix file but happy to do so? It's all just dummy data for now...

 

g_l_dixon_0-1632752666207.png

 

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.