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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Paulyeo11
Impactful Individual
Impactful Individual

How to recode payment from 1 = 30 day 2= 60 day ?

Paulyeo11_0-1610516656279.png

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Paulyeo11 ,

You can create a calculated column just as show in below screenshot:

_TERM = SWITCH('AR'[TERM],BLANK(),"No term",1,"30 day",2,"60 day","Other")

_TERM.JPG

Best Regards

Community Support Team _ Rena
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

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi @Paulyeo11 ,

You can create a calculated column just as show in below screenshot:

_TERM = SWITCH('AR'[TERM],BLANK(),"No term",1,"30 day",2,"60 day","Other")

_TERM.JPG

Best Regards

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

Hi Ying

Thank you so much , it work fine now. 

Now i notice that for the raw data payment term , the field value is text or whole number make a lot of diff. 

Paul

Paulyeo11
Impactful Individual
Impactful Individual

@Paulyeo11 , You can create a new column like

Switch( True(),
1, "30 Days",
2, "60 Days"
)

Hi Amit

Thank you , where to insert the field name TERM in your propose expression ?

Paulyeo11_0-1610518364542.png

 

@Paulyeo11 , In the table you have column term , you need to create this new column

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.