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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jmcp
Frequent Visitor

Creating Timebands

Hi

I have a column of days worked for employees and i want to group them into Timebands of  less than 3 months,  between 3 and 6 months and greater than 6 months.

I think i may need to create new measures but i am not sure of the formula needed.

 

any ideas?

1 ACCEPTED SOLUTION
jmcp
Frequent Visitor

Hi Amy

 

Apologies for late response - yes that helped! 

 

thank you so much.

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi  @jmcp ,
 
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards
Amy Cai

 

jmcp
Frequent Visitor

Hi Amy

 

Apologies for late response - yes that helped! 

 

thank you so much.

v-xicai
Community Support
Community Support

Hi @jmcp ,

 

You can create measure using DAX below.

 

Range Judge = SWITCH(TRUE(),MAX(Table1[days])<=90,"less than 3 months", MAX(Table1[days])>90&&MAX(Table1[days])<=180,"between 3 and 6 months", MAX(Table1[days])>180,"greater than 6 months")

 

Best Regards,

Amy

 

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

MattAllington
Community Champion
Community Champion

Well, it depends on your data structure. In this (rare) case, you may need a calculated column or a conditional column from Power Query.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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