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

How to add condition for SOURCE_AR for Recode Payment Term =1 to 30Days ?

Paulyeo11_0-1605946936208.png

 

2 REPLIES 2
speedramps
Super User
Super User

Please consider these solutions and click ‘accept solution’ and click the thumbs up to leave kudos, thank you.

 

Option1

In the query editor create a new conditional column

New payment terms =
If AR(SOURCE_AR) = “TS” then 1 – 30
else Payment Terms

 

Option2

Add a new table called Sources with

Source_AR          Terms

TS                           1 to 30
WK                         1 to 7
2WK                       1 to 14

Then create a relationship

Anonymous
Not applicable

Hi Speed

Thank you for your sharing.

My PBI file as per enclosed :-

https://www.dropbox.com/s/q33j2cnep5qkwpo/PB_TDS_V055%20ASK.pbix?dl=0

 

I have 2 fields , SOURCE and Payment term code:-

Paulyeo11_0-1605949963093.png

 

 

Paul Yeo

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