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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hisackman
Frequent Visitor

Match Between Dates

Hello,

 

I'm trying to extract an amount between two dates when matched to another data set.

 

E.g.

Create a new column / merge the data by date so that any date can pull one of the "Amounts" below.

If I have a date of 6/1/2024 it would match $850 for Carrier B;

If I have a date of 6/1/2025 it would pull a value of $300 for Carrier C

 

As OfCarrierAmount
1/1/2022A$500.00
1/1/2022B$850.00
1/1/2022C$250.00
1/1/2022D$600.00
1/1/2025A$100.00
1/1/2025B$200.00
1/1/2025C$300.00
1/1/2025D$400.00
1 ACCEPTED SOLUTION
Ashish_Excel
Super User
Super User

Hi,

Download PBI file from here.

Hope this helps.

Ashish_Excel_0-1747785440543.png

 

View solution in original post

5 REPLIES 5
Ashish_Excel
Super User
Super User

Hi,

Download PBI file from here.

Hope this helps.

Ashish_Excel_0-1747785440543.png

 

Hi @hisackman ,

If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

 

We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Fabric Community Forum.

 

Hi @hisackman,
If the information provided by @@Ashish_Excel @Irwan  is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help

Thank You!!

Hi @hisackman ,

If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

 

We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Fabric Community Forum.

Irwan
Super User
Super User

hello @hisackman 

 

in your example, since there is no other condition besides date, why it will take Carrier B on 6/1/24?

also why it takes Carrier C on 6/1/25?

 

Thank you?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.