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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.