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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
driank
Regular Visitor

CALCULATE LAST WEEK

HI,  I have a table with a date, I need to count teh ids of teh las week , from de same table:

Code:

last app = CALCULATE(COUNT(TableID]),Table[STATUSTO] = “apr”, WEEKNUM(Table[DATECREATE],2) = WEEKNUM(MAX(Table[DATECREATE]),2))

 

Error: A "MAX" function has been used in a True /False expession than is unsed as a table filter expression ..

Thanks

 

1 REPLY 1
amitchandak
Super User
Super User

@driank , refer to my blog, how can use week and week rank for the same. You need to have date /week table with Rank of week start date or Year week

 

 

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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