cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Paulyeo11
Impactful Individual
Impactful Individual

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

Paulyeo11
Impactful Individual
Impactful Individual

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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!