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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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