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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors