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
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.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors