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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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"
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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