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
BostonBI
Frequent Visitor

How i return the name to the referred Date instead of the Date only?

Heres the context:
Ive a table with Dates and names and Ids to the referred names, Showed as Follow:(Made the table in Excel to save some time)

BostonBI_0-1675261360170.png

I need it to return the name(or names if there are more than one in the same date) associated with the date as showed in the table above. The measure below only shows me the closest upcoming date compared to today(which is 02/02/2023).

CALCULATE (
        MIN ( Table[Date] ),
        FILTER( Table, Table[Name] = ( Table[Name]] ) && Table[Date]>=TODAY() )
    )
Summarizing: i need to retrieve a List of names based on the closest upcoming date. 



   
1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @BostonBI 

You can refer to the following example

Create a new measure

Measure = var _mindate=MINX(FILTER(ALL('Table'),[Date]>=TODAY()),[Date])
return CONCATENATEX(FILTER(ALL('Table'),[Date]=_mindate),[Name],",")

Output

vxinruzhumsft_0-1675304052833.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @BostonBI 

You can refer to the following example

Create a new measure

Measure = var _mindate=MINX(FILTER(ALL('Table'),[Date]>=TODAY()),[Date])
return CONCATENATEX(FILTER(ALL('Table'),[Date]=_mindate),[Name],",")

Output

vxinruzhumsft_0-1675304052833.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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