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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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