Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
Solved! Go to Solution.
Like this?
Upcoming Milestones =
"Upcoming Milestones: "
& CONCATENATEX (
FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
& " " & Milestones[Meeting]
& " " & Milestones[Name],
", "
)
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],
", "
)
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],
", "
)
Brilliant--works perfectly, thank you!
Like this?
Upcoming Milestones =
"Upcoming Milestones: "
& CONCATENATEX (
FILTER ( Milestones, Milestones[Target (End)] > TODAY () ),
FORMAT ( Milestones[Target (End)], "mm/dd/yyyy" )
& " " & Milestones[Meeting]
& " " & Milestones[Name],
", "
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |