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
Jorrafer25
Frequent Visitor

Criteria to bring info based on dates

Hello Community!

I have a problem in keeping the historical data in my company since we receive the demand for our products from the date we receive it onwards. For example:

Jorrafer25_0-1667391433832.png

The data comes in a table like this:

Jorrafer25_1-1667391537029.png

My goal is to get something like this:

Jorrafer25_2-1667391618412.png

Where you can see that we always keep the last version, but since in the last version we don't have data from 4/1/2022 and backwards, we bring the data from version 2. In version 2 we have the demand from 4/1/2022 onwards, so to have data in the dates 1/1/2022, 2/1/2022 and 3/1/2022, we have to bring the demand from version 1.

 

Thanks in advance

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Jorrafer25 

Using Power Query you can easily create a [Version Number] Column. The use

NewMeasure =
SUMX ( TOPN ( 1, 'Table', 'Table'[Version Number] ), 'Table'[Value] )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Jorrafer25 

Using Power Query you can easily create a [Version Number] Column. The use

NewMeasure =
SUMX ( TOPN ( 1, 'Table', 'Table'[Version Number] ), 'Table'[Value] )

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.