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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Display values based on last 2 weeks data dynamically change the dates every day to last 2 weeks

Hi

 

How to display values from 'Title' Column whose completed date in last 2 weeks?

 

Capture4.PNG    

 

Thanks

Kunuthuri

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

 

Do you mean calculate count of records which completed 2 weeks ago and 'title' similar as current one?

If this is a case, you can try to use below measure:

Count of Previous 2 weeks complete records=
VAR currDate =
    MAX ( Table[Date] )
VAR currTitle =
    FIRSTNONBLANK ( Table[Title], [Title] )
RETURN
    COUNTROWS (
        FILTER (
            ALLSELECTED ( Table ),
            [Date]
                <= currDate - 14
                && [Work] = "completed"
                && [Title] = currTitle
        )
    )

If above not help, please share some expected result to help us clarify your requirement.

 

Regards,

Xiaoxin Sheng

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.