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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
ilTac
Frequent Visitor

Conditional Column Power Query (M): how to repeat the value for some rows and then change the value

Hi everyone,

i'm trying to achieve the follow in power query:

 

here's what i have as native database 

ilTac_1-1645631400178.png

 and this is what i wolud like:

ilTac_3-1645631431065.png

so basically take one value from first column and repeat for some amout of rows.

I was trying with index and referst to previuos row but of course this won't work.

 

Do you think it is possible to achive this?

Does anyone has some hints on how to do it?

 

Thanks in advance!

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @ilTac ,

 

Try to add a column with the following code:

if (try Date.FromText([Date]) otherwise null) = null then [Date] else null

Then do a fill down on that new column


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

ilTac
Frequent Visitor

Hi @MFelix 

i dind't know about the fill down option.

Thank you very much, solved.

View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @ilTac ,

 

Try to add a column with the following code:

if (try Date.FromText([Date]) otherwise null) = null then [Date] else null

Then do a fill down on that new column


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





ilTac
Frequent Visitor

Hi @MFelix 

i dind't know about the fill down option.

Thank you very much, solved.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.