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
joshua1990
Post Prodigy
Post Prodigy

Show new entries compared to previous week Data

Hello everyone!

I maintain a table weekly in that way that I add one snapshot of a specific per week. The objective is to get an archive.

The structure is like that:

DateOrder
08.02.20211001
08.02.20211002
08.02.2021

1003

15.02.20211001
15.02.20211002
15.02.20211003
15.02.20211004

 

Now I would like to determine how many new rows/ new orders are now in the current week compared to last week.

I already have linked that table to my calendar and attribute table. I would like to use a department dimension (attribute list) to see in the end the result in a matrix/ table.

 

To get the entries per week I have added these measures:

 

#Orders = 
CALCULATE (
    DISTINCTCOUNT( 'Orders'[Order] ))

#Orders Prio Week = 
CALCULATE (
    [#Orders],
    DATEADD('Calendar'[Date], -7, DAY))

Entry #Orders = 
VAR _Entry = IF([#Orders]<>1,BLANK(), [#Orders] - [#Orders Prio Week])
RETURN 
_Entry

 

 

Somehow I get a blank value as a result for the last measure If I put the department into the rows section.

What is missing here?

1 REPLY 1
lbendlin
Super User
Super User

Use the EXCEPT() function to figure out the differences between snapshots

 

Let's assume the previous snapshot is A and the current snapshot is B

 

EXCEPT(B,A) will give you all the orders that are new this week

EXCEPT(A,B) will give you all the orders that are no longer listed in the current snapshot (not sure if you have such a situation)

INTERSECT(A,B)  will give you the orders that are present in both snapshots.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (29)