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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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