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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Nona
Frequent Visitor

Create a column with less thatn 50, between 50 and 100, between 100 and 200, more than 500,,, or so

Hi Community, I have a column called [File count]. Value is number of files from [0 to 700].

Based on that [File count] column, I would like to create a new column with the value of

  • 0
  • Less than 50
  • between 51 to 100
  • between 101 to 200
  • between 201 to 300
  • more than 300

Can anyone advise me how to create this kind of column ?

 

1 ACCEPTED SOLUTION
jppv20
Solution Sage
Solution Sage

Hi @Nona ,

 

You can try this as a calculated column:

 

Range =
IF('Table'[File count]=0,"0",
IF('Table'[File count]<51,"Less than 50",
IF('Table'[File count]>50&&'Table'[File count]<101,"Between 51 to 100",
IF('Table'[File count]>100&&'Table'[File count]<201,"Between 101 to 200",
IF('Table'[File count]>200&&'Table'[File count]<301,"Between 201 to 300",
IF('Table'[File count]>300,"More than 300",
BLANK()))))))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.

Connect on Linkedin

View solution in original post

3 REPLIES 3
jppv20
Solution Sage
Solution Sage

Hi @Nona ,

 

You can try this as a calculated column:

 

Range =
IF('Table'[File count]=0,"0",
IF('Table'[File count]<51,"Less than 50",
IF('Table'[File count]>50&&'Table'[File count]<101,"Between 51 to 100",
IF('Table'[File count]>100&&'Table'[File count]<201,"Between 101 to 200",
IF('Table'[File count]>200&&'Table'[File count]<301,"Between 201 to 300",
IF('Table'[File count]>300,"More than 300",
BLANK()))))))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.

Connect on Linkedin
Nona
Frequent Visitor

Thank you very much !!!! it works !

smpa01
Super User
Super User

@Nona try this

 

Column = switch(true(),table[File Count]=0, "0", 
                       table[File Count]>0&&table[File Count]<=50, "Less than 50",
                       table[File Count]>50&&table[File Count]<=100, "51-100" ,
                       -----------------------------------------------------
                       -----------------------------------------------------
                       table[File Count]>300, "more than 300")

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors