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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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