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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tksnota
Post Patron
Post Patron

Get Value from one Column to Another When One Column Starts With A Character: Prefer DAX

 

Hi,

 

Can anyon help me on this one so the respected columns will only be populated by the appropriate values.

 

Thanks...tksnota...

tksnota_0-1735001308391.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tksnota ,

 

I think you can try code as below to create calculated columns. If [reknr] is data like 40010, you can set the data format as whole number.

 

reknr_crd (DAX) = IF('Table'[reknr] = 40010 || 'Table'[reknr] in GENERATESERIES(70000,79999,1),'Table'[bdr_hfl],0)
reknr_drd (DAX) = IF('Table'[reknr] in GENERATESERIES(80000,89999,1),'Table'[bdr_hfl],0)

 

Result is as below.

vrzhoumsft_0-1735096668112.png

 

Best Regards,
Rico Zhou

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @tksnota ,

 

I think you can try code as below to create calculated columns. If [reknr] is data like 40010, you can set the data format as whole number.

 

reknr_crd (DAX) = IF('Table'[reknr] = 40010 || 'Table'[reknr] in GENERATESERIES(70000,79999,1),'Table'[bdr_hfl],0)
reknr_drd (DAX) = IF('Table'[reknr] in GENERATESERIES(80000,89999,1),'Table'[bdr_hfl],0)

 

Result is as below.

vrzhoumsft_0-1735096668112.png

 

Best Regards,
Rico Zhou

 

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

suparnababu8
Super User
Super User

Hi @tksnota 

 

Can you pls provide a sampl data with editable form not int the image. So, we'll help you to solve your problem.

 

Thanks

ryan_mayu
Super User
Super User

could you pls provide the sample data (not the screenshot) and the expected output?





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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