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
sandierea
Frequent Visitor

If and Vlookup

I am new to PowerBI and DAX. I am trying to create an aging report for open IT tickets. 

 

My table contains the number of days that the ticket has been open, but I need to return a value (see status message below) based on the number of days that the ticket has been open. 

 

I was able to do this in EXCEL using this formula =VLOOKUP(IF(TODAY()>'IS SR  - Dec Data List All'!$J2,TODAY()-'IS SR  - Dec Data List All'!$J2,0),Age_Range1,2,TRUE)  where J2 is the ticket entry date

 

Age_Range1 has the following:

 

RangeStatus Message
0<= 1 Day
11-30 days
3131-60 days
6161-90 days
9191-180 days
181181-360 days
361>360 days

 

How do I do this in PowerBI?

 

Thanks for your help 🙂

 

1 ACCEPTED SOLUTION
blopez11
Resident Rockstar
Resident Rockstar

Take a look at the link below

This should get you what you want

 

http://www.daxpatterns.com/static-segmentation/

 

View solution in original post

1 REPLY 1
blopez11
Resident Rockstar
Resident Rockstar

Take a look at the link below

This should get you what you want

 

http://www.daxpatterns.com/static-segmentation/

 

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.