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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
KatkaS
Post Patron
Post Patron

Comparing data by date

Hello

 

I have an excel sheet being updated every week and I would need to compare data of current week with the previous week.

e.g. below, I need to know how many requsitions were changed to status Closed... I'm looking for calculation where the result for Closed reqisitions (in below examples 2..)

 

Thank you very much!

 

Requisition numberDateStatus

ABC

6.8.2021Approved
DEF

6.8.2021

Approved
GHI

6.8.2021

Approved

ABC

13.8.2021Closed
DEF13.8.2021Closed
GHI13.8.2021Approved
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @KatkaS 

 

Assume that once an item's status was changed to Closed, it would not change again, you can use below measure to calcuate the weekly number of requisitions that changed to Closed.

Measure = 
VAR __thisWeekCount = COUNTROWS(FILTER(ALL('Table'),'Table'[Date]=MAX('Table'[Date]) && 'Table'[Status]="Closed"))
VAR __lastWeekCount = COUNTROWS(FILTER(ALL('Table'),'Table'[Date]=MAX('Table'[Date])-7 && 'Table'[Status]="Closed"))
RETURN
__thisWeekCount - __lastWeekCount

081705.jpg

 

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @KatkaS 

 

Assume that once an item's status was changed to Closed, it would not change again, you can use below measure to calcuate the weekly number of requisitions that changed to Closed.

Measure = 
VAR __thisWeekCount = COUNTROWS(FILTER(ALL('Table'),'Table'[Date]=MAX('Table'[Date]) && 'Table'[Status]="Closed"))
VAR __lastWeekCount = COUNTROWS(FILTER(ALL('Table'),'Table'[Date]=MAX('Table'[Date])-7 && 'Table'[Status]="Closed"))
RETURN
__thisWeekCount - __lastWeekCount

081705.jpg

 

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

THANK YOU VERY MUCH, JING!!!

selimovd
Super User
Super User

Hey @KatkaS ,

 

is the format of the values identical?

If yes, why don't you put all the Excel in one folder and load all of them with the load folder option? There you can merge all of the data into one table. Afterwards you can do you analysis in Power BI.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hello Denis,

that's what I do already - I have on excel that is updated on weekly basis and I'm adding the new version to the folder which I then refresh in pbi..

but once it is uploaded I don't know how to achieve what I need (= calculate number of requisitions that changed status from Approved to Closed since last update..)

 

I hope I made myself clearer now..

Thank you!  

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.