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
Anonymous
Not applicable

Categorization by amount of days overdue - account receivables

Hi guys and girls,

 

I need some help with creating custom columns in the query editor. I want to categorize overdue receivables by amount of days overdue. I have 6 categories:

 

1: 1-30 days

2: 31-60 days

3: 61-90 days

4: 91-180 days

5: 181-360 days

6: 360+

 

The table below provides the example of how my data looks and what data I want to create. the two first columns I have the last one I'm trying to calculate:

 

Number of days overdueAmount OverdueCategory
23124151-30 days
56135242331-60 days
124537457691-180 days
4523523431-60 days
1231241241591-180 days
7652462342+ 360 days
354342180-360 days
42343636+ 360 days
23234131-30 days
122351-30 days
342463574531-60 days
652343561-90 days
7623542661-90 days

 

Could someone please help me with the correct/easiest way to do this?

 

Thank you!

 

Br,

 

Me

1 ACCEPTED SOLUTION
ashrin
Helper I
Helper I

Hi,

Create a new column like this :

 

category =

if(Table1[Column1]>=1 && Table1[Column1]<=30, "1-30 days" ,
if( Table1[Column1]>=31 && Table1[Column1]<=60, "31-60 days",
if( Table1[Column1]>=61 && Table1[Column1]<=90, "61-90 days",
if( Table1[Column1]>=91 && Table1[Column1]<=180, "91-180 days",
if( Table1[Column1]>=181 && Table1[Column1]<360, "181-360 days",
if( Table1[Column1]>=360, "360+ days"))))))

 

* Please mark this as answer if it helped 🙂

View solution in original post

2 REPLIES 2
ashrin
Helper I
Helper I

Hi,

Create a new column like this :

 

category =

if(Table1[Column1]>=1 && Table1[Column1]<=30, "1-30 days" ,
if( Table1[Column1]>=31 && Table1[Column1]<=60, "31-60 days",
if( Table1[Column1]>=61 && Table1[Column1]<=90, "61-90 days",
if( Table1[Column1]>=91 && Table1[Column1]<=180, "91-180 days",
if( Table1[Column1]>=181 && Table1[Column1]<360, "181-360 days",
if( Table1[Column1]>=360, "360+ days"))))))

 

* Please mark this as answer if it helped 🙂

Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, In Query Editor you can use Conditional Column (In Add Tab).

 

Regards

 

Victor




Lima - Peru

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.