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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
User7664
Helper I
Helper I

Create a calculated column to show the minimum date filtering on another column in the same table

Hi

I have a date table (below) and im trying to create a column to show the minium date for previous period '-2' and for '-1', and for '0' etc etc. 

 

In excel it would be minifs(date,previous period=previous period). See below.

 

unnamed.png

 

Untitled.png

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@User7664 

Add the following column:

Column = 

CALCULATE(
    MIN( ActualDateRange[Date] ),
    ALLEXCEPT(ActualDateRange , ActualDateRange[Previous Period] )
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@User7664 

Add the following column:

Column = 

CALCULATE(
    MIN( ActualDateRange[Date] ),
    ALLEXCEPT(ActualDateRange , ActualDateRange[Previous Period] )
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
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!

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.

Top Solution Authors
Top Kudoed Authors