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
sebastianqc
Helper I
Helper I

Repeat values from a Thursday to a Wednesday

Hello everyone ,  i have the next question:
how can I repeat this data per week from Thursday to Wednesday? below I put a picture of what I have

imagen.png

the red box data is repeated until Wednesday

 

Thanks for help me

1 ACCEPTED SOLUTION

@sebastianqc 

 

In DAX you can try with this:

 

1. a New Column to obtain if the day of week is Wednesday get Value1 Column:

 

 

Value1onWed =
IF ( WEEKDAY('Table'[Date];2) = 4; 'Table'[Value1] )

 

2. New Column for the Corrected Values (Repeat for each column)

 

Value1RV =
VAR _Date = 'Table'[Date]
RETURN
    IF (
        'Table'[Value1onWed] <> BLANK ();
        'Table'[Value1onWed];
        CALCULATE (
            LASTNONBLANK ( 'Table'[Value1]; 'Table'[Value1] );
            FILTER ( 'Table'; 'Table'[Date] < _Date )
        )
    )

 

 

Regards

 

Victor




Lima - Peru

View solution in original post

7 REPLIES 7
Vvelarde
Community Champion
Community Champion

@sebastianqc 

 

Hi, try with this:

 

--Add a Custom Column for each column (in your case : 3)

if Date.DayOfWeek([Date])=4 then [Value1] else null
if Date.DayOfWeek([Date])=4 then [Value2] else null
if Date.DayOfWeek([Date])=4 then [Value3] else null

 

-- Fill Down

---Removed original Columns

 

Regards

 

Victor

 

 




Lima - Peru

@Vvelarde  thanks you  ...   but how  I can apply this if my table is calendar table type?🤔

@sebastianqc 

 

In DAX you can try with this:

 

1. a New Column to obtain if the day of week is Wednesday get Value1 Column:

 

 

Value1onWed =
IF ( WEEKDAY('Table'[Date];2) = 4; 'Table'[Value1] )

 

2. New Column for the Corrected Values (Repeat for each column)

 

Value1RV =
VAR _Date = 'Table'[Date]
RETURN
    IF (
        'Table'[Value1onWed] <> BLANK ();
        'Table'[Value1onWed];
        CALCULATE (
            LASTNONBLANK ( 'Table'[Value1]; 'Table'[Value1] );
            FILTER ( 'Table'; 'Table'[Date] < _Date )
        )
    )

 

 

Regards

 

Victor




Lima - Peru

@Vvelarde  Thank you , i will try this  😊

Nice thank to you @Vvelarde   its worked 

camargos88
Community Champion
Community Champion

Hi @sebastianqc ,

 

Do you need to override the values or you just have the first value for each set (Thurday - Wednesday) ?

 

Ricardo



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

Proud to be a Super User!



@camargos88  I need override the first value from the next week (thursday to wednesday),  on example the first value is marked on red box 

 

I hope it's useful

 

Thanks Sebastian

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
Top Kudoed Authors