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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.