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
LuisApollo
New Member

Filtering Measure by last the rankn before

Good Afternoon :
I have created a measure called % Agt talk time and I need to show the last week result of this measure .
To achieve this i ve created a week ranking , so I need to filter upon selecting a FIXweek (i.e week 3 ) the results for the week rank 53 .
I can´t use last week due to the change of year and sepciall weekly requests , so the ranking made sense for me, however the measure is not working. Any help to achieve this ? The results will be filteres by year - Week 

LuisApollo_1-1643150644566.png

 

LuisApollo_0-1643150511666.png

Used Measure :

LW % agt Talk Time = CALCULATE([% Agt Talk time],
FILTER(ALL(statCallEnd[WeekRank]), statCallEnd[WeekRank] = (SELECTEDVALUE(statCallEnd[WeekRank])-1)))
3 REPLIES 3
LuisApollo
New Member

Will build a new date table and work from there , will let you know if that works

amitchandak
Super User
Super User

@LuisApollo , Make sure you have a separate date or week year table and in visual you use week year from that table only

 

try measures like

 

This Week = CALCULATE([% Agt Talk time], FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE([% Agt Talk time], FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Well, built a time table and made the Measure , it does help since i can see the last fomr selected , however it doesn´t populate a table and only works if one value is selected 

LuisApollo_1-1643223308850.png

LuisApollo_2-1643223356467.png

Very close but still missing something

 

 

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.