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
Anonymous
Not applicable

Dynamic Month and Conditional Rows

Hello I'm stuck at data transforming level. In this first example of my data, I added the company's untransformed data example. 

Name parts should be filled, but only the first line is filled and the other lines come empty from the source.

1.png

But Company needs it this this way.

2.png

This is the data from my source.I need to fill the blank values in names dynamically. 

For example fill "A" to type from first Row A to First Row B. I tried to show the expected 

Data will come again in the form of weeks of the month (when I am in next month). It can come as 5 weeks in the next month.

 

How can I do this dynamically ? 

 

Thank your for your time and helps 🙂

1 ACCEPTED SOLUTION

@Anonymous 

Sry, you are correct. I think there maybe some way we can do that in M, however, I am not good at it.

Here is a workaround, create an index column and create another column

New name = 
VAR INDEX=maxx(FILTER('Table','Table'[Index]<EARLIER('Table'[Index])&&'Table'[name]<>""),'Table'[Index])
RETURN 
IF('Table'[name]="",MAXX(FILTER(ALL('Table'),'Table'[Index]=INDEX),'Table'[name]),'Table'[name])

1.PNG





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@Anonymous 

does fill down in PQ work for you?

1.PNG





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

Proud to be a Super User!




Anonymous
Not applicable

Hello, I tried but it only fills null with one value I think. Maybe I did it wrong ?

@Anonymous 

Sry, you are correct. I think there maybe some way we can do that in M, however, I am not good at it.

Here is a workaround, create an index column and create another column

New name = 
VAR INDEX=maxx(FILTER('Table','Table'[Index]<EARLIER('Table'[Index])&&'Table'[name]<>""),'Table'[Index])
RETURN 
IF('Table'[name]="",MAXX(FILTER(ALL('Table'),'Table'[Index]=INDEX),'Table'[name]),'Table'[name])

1.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors