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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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.

Top Solution Authors