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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
djrhenderson
New Member

List Tasks with each day they occur

Hi Folk

I've created a pivot table (using powerpivot) and DAX and while this works, it only lists out the task on day 1 of the scheduled task. the formula I'm using is as follows. 

=CONCATENATEX(TOPN(1,Programme,COUNTA(Programme[Start Date])),Programme[Course Name]," | ")&""

This returns the name of the course linked to the start date as shown here

djrhenderson_1-1660055921107.png

 

What I want to see is the task [course name] appear on each day between the start and end date. So for example if the task had a start date of 8/9/22 and end date 11/9/22 I would expect to see the taks name appear on against the 8,9,10 & 11 September

 

 

 

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

Hi @djrhenderson ,

 

The table I created as below:

vyadongfmsft_0-1660643826625.png

 

Please try following DAX:

Column = MAXX(
    FILTER('course',
    'course'[startdate] <= EARLIER('Table'[Date])&&
    'course'[endtate] >= EARLIER('Table'[Date])),
    'course'[coursename])

vyadongfmsft_1-1660643826629.png

 

Best regards,

Yadong Fang

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

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @djrhenderson ,

 

Has your problem solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.

v-yadongf-msft
Community Support
Community Support

Hi @djrhenderson ,

 

The table I created as below:

vyadongfmsft_0-1660643826625.png

 

Please try following DAX:

Column = MAXX(
    FILTER('course',
    'course'[startdate] <= EARLIER('Table'[Date])&&
    'course'[endtate] >= EARLIER('Table'[Date])),
    'course'[coursename])

vyadongfmsft_1-1660643826629.png

 

Best regards,

Yadong Fang

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

amitchandak
Super User
Super User

@djrhenderson , refer if these two links can help

https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.