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! Learn more

Reply
pete1234
Frequent Visitor

Making a DAX for 5+ situation

Hello,

 

I'm very new to Power BI and Power Query so please bare with me.

 

I have a column in Power Query from a Sharepoint list. It is called Response Time, and it is the amount of days between the initial contact date of a ticketing system to the response date. I would like to make another column called 5+ Response Time which is just the same as Response Time except when a ticket takes 5 or more days it is generalised as 5+.

 

How can I make this new column with the new condition? I have copied an example using IF statements in Excel.

pete1234_0-1723718833422.png

 

1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

Hi @pete1234, you can us if statement in Power Query as well:

 

Put this code into Custom Column

 

if [Response Time] > 5 then "5+" else Text.From([Response Time])

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

3 REPLIES 3
dufoq3
Super User
Super User

Hi @pete1234, you can us if statement in Power Query as well:

 

Put this code into Custom Column

 

if [Response Time] > 5 then "5+" else Text.From([Response Time])

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

That's great thanks!

You're welcome 😉


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.