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
VaibhavNath
Regular Visitor

How to repeat a column n number of times

Proj A1A2A3
PRJ110%20%10%
PRJ25%5%

3%

PRJ35%4%5%
PRJ55%5%6%
PRJ65%5%5%
PRJ73%5%5%
PRJ810%1%20%

 

ProjA1 duration(no of months)A2 duration(no of months)A3 duration(no of months)
PRJ1444
PRJ2345
PRJ3336
PRJ5543
PRJ6543
PRJ7543
PRJ8552

 

Output table:

 

 JanFebMarAprMayJuneJulyAugustSeptemberOctoberNovemberDecember
PRJ110%10%10%10%20%20%20%20%10%10%10%10%
PRJ25%5%5%5%5%5%5%3%3%3%3%3%
PRJ35%5%5%4%4%4%5%5%5%5%5%5%
PRJ5            
PRJ6            
PRJ7            
PRJ8            

 

Hey,

 

Could anybody please help me on this. First two above tables are input & third one is the output table. First table contains the efficiency parameters phasewise(A1,A2,A3) for the project. Second table mentions the duration (in no of months of for each project). Output would be in form of third table where efficiency values are repeatedas per the duration mentioned in 2nd table. for e,g(in output table) for PRJ1, A1 value is repeated 4 times as the duration of A1 phase(in 2nd table) is 4. Then A2 value is repeated 4 times as it is also mentioned as 4 in second table. likewise for others.

1 ACCEPTED SOLUTION

Thanks for the confirmation, I also was not able to find anything else. Have written a script in excel to automate this

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @VaibhavNath ,

With the logic of DAX, it is not achievable at this time. Can only be achieved manually.

 

Best Regards
Community Support Team _ Polly

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

Thanks for the confirmation, I also was not able to find anything else. Have written a script in excel to automate this

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.

Top Solution Authors