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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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