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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Samba777
Frequent Visitor

if today is between two dates of sprint number then return value of sprint number in PowerBi DAX

Hi Folks,

I have a sample data like belwo chart

Iteration Start DateEnd dateSprint number
12/27/2022 12/30/2022 41
12/28/2022 12/31/2022 41
12/29/2022 1/1/2023 41
12/30/2022 1/2/2023 41
12/31/2022 1/3/2023 042
1/1/2023 1/3/2023 42
1/2/2023 1/3/2023 42
1/3/2023 1/3/2023 42

 

Suppose today date is 27th dec, so i have get the sprint number is 41 and suppose date is jan1st 2023 then we need to get sprint number is 42.

 

Please help me with DAX

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Samba777 
Please try

Today Sprint =
MAXX (
    FILTER (
        ALL ( Data ),
        Data[Iteration Start Date] <= TODAY ()
            && Data[IEnd Date] >= TODAY ()
    ),
    Data[Sprint]
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Samba777 
Please try

Today Sprint =
MAXX (
    FILTER (
        ALL ( Data ),
        Data[Iteration Start Date] <= TODAY ()
            && Data[IEnd Date] >= TODAY ()
    ),
    Data[Sprint]
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.