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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.