cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
DigitalDNA
Frequent Visitor

Help modifying a display text box value based on filters for future milestones

I have a display text box value based on filters with a list of milestones that currently works using the code below however I would like to modify it slightly so that only future milestones are displayed (i.e. those milestones occuring after today). Additionally, I would like to add 2 additional columns "Name" and "Meeting" into the mix so that the final output appears as: "Upcoming Milestones: 10/22/2021 Meeting Name, 10/23/2021 Meeting Name", and so on.  Thank you.

 

Measure = "Upcoming Milestones: "
& CONCATENATEX (
VALUES(Milestones[Target (End)])
, Milestones[Target (End)]
,", "
)
2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

Like this?

 

Upcoming Milestones =
"Upcoming Milestones: "
    & CONCATENATEX (
        FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
        FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
			& " " & Milestones[Meeting]
			& " " & Milestones[Name],
        ", "
    )

View solution in original post

Next Milestone =
VAR NextDate =
    MINX (
        FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
        Milestones[Target (End)]
    )
RETURN
    "Upcoming Milestones: "
        & CONCATENATEX (
            FILTER ( Milestones, Milestones[Target (End)] = NextDate ),
            FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
				& " " & Milestones[Meeting]
				& " " & Milestones[Name],
            ", "
        )

View solution in original post

4 REPLIES 4
DigitalDNA
Frequent Visitor

How can I return only 1 milestone date, meeting, and name using the same solution and code referenced above?  That is, out of many future milestones that will occur after today, I only want to show the very next milestone (1 as oppposed to many).  Thank you.

Next Milestone =
VAR NextDate =
    MINX (
        FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
        Milestones[Target (End)]
    )
RETURN
    "Upcoming Milestones: "
        & CONCATENATEX (
            FILTER ( Milestones, Milestones[Target (End)] = NextDate ),
            FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
				& " " & Milestones[Meeting]
				& " " & Milestones[Name],
            ", "
        )
DigitalDNA
Frequent Visitor

Brilliant--works perfectly, thank you!

AlexisOlson
Super User
Super User

Like this?

 

Upcoming Milestones =
"Upcoming Milestones: "
    & CONCATENATEX (
        FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
        FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
			& " " & Milestones[Meeting]
			& " " & Milestones[Name],
        ", "
    )

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors