Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Well, I gave it a crack. Not right, but can someone help me with making this correct.
DayOldCategory = switch(Invoice[DaysOld],
<-30 && >-59,"30-60",
<-60 && >-89,"60-90",
<-90 && >-999, "120+")If invoice[daysold] is between -30 and -59, I want to have text "30-60", between -60 and -89, then "60-90"text, and finally over -90 to show text "120+)
Please and thank you 🙂
Solved! Go to Solution.
@unclejemima here is the fixed calculation.
SWITCH(TRUE(),
Invoice[DaysOld]<-30 && Invoice[DaysOld]>-59,"30-60",
Invoice[DaysOld]<-60 && Invoice[DaysOld]>-89,"60-90",
Invoice[DaysOld]<-90,"120+",
"Other")
@unclejemima here is the fixed calculation.
SWITCH(TRUE(),
Invoice[DaysOld]<-30 && Invoice[DaysOld]>-59,"30-60",
Invoice[DaysOld]<-60 && Invoice[DaysOld]>-89,"60-90",
Invoice[DaysOld]<-90,"120+",
"Other")
awesome thank you! marked as answer!!!
Anyone??? I think the formula is close but not quite right. Please help 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.