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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Values Which are Preceding those to be shown in next cell using Power BI desktop

Hi , 

 

We need help in below scenario , if anyone knows the answers its really appreciated for us. 

 

Table A having below column 1st with below values.

Column 1st

1
2
3
4
5
6
7
8
9
10

 

 

Table B having below columns with values 

 

Column 1stColumn 2nd

1100
2150
5175
8200

 

Table C once left join between both abve tables 

 

Column 1stColumn 2nd
1100
2150
3 
4 
5175
6 
7 
8200
9 
10 

 

But i want output like this using Power BI desktop DAX 

 

e,g aove table if checked for 3 and 4 there is empty but i want values which preceds.

 

Column 1stColumn 2nd
1100
2150
3150
4150
5175
6175
7175
8200
9200
10200
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks I have found the solution , 

As fill option in transform at Power BI desktop 

View solution in original post

3 REPLIES 3
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can create a new column in your 3rd table as follows:

corrected value =
VAR PreviousRow =
CALCULATE(
MAX('Value Data'[Value]),
FILTER ( 'Value Data', 'Value Data'[Id] < EARLIER ( 'Value Data'[Id] ) )
 
)
RETURN IF('Value Data'[Value] = BLANK(), PreviousRow, 'Value Data'[Value])
 
Replace Value Data'[Id]  with Column 1st
Replace Value Data'[Value] with Column 2nd
 
The output on my test data is a s follows:
op1.png
 
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
 
Thanks,
Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Greg_Deckler
Community Champion
Community Champion

 Use Fill Down?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks I have found the solution , 

As fill option in transform at Power BI desktop 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors