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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Help with query Dax or Power query

Hi all,

 

Imagine the situation:

 

i have a table like this:

romero10_1-1646670179778.png

 

Due this situation , to have a backlog table , i need to generate each entry with the date depending how many days the incident was bettween open and resolved. 1 entry in the table per day opened.

 

If the diff betten open and resolved is 0 (resolved same day) is 1

if no resolve time so ticket still opened compare with today.

 

Could you help me to create doesn't matter if is DAX or power query?

1 ACCEPTED SOLUTION

@Anonymous Sure:

Column = IF([INC_RESOLVED_AT] = BLANK(),TODAY(),[INC_RESOLVED_AT])

 

Also, you might find these links helpeful as well:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Can anyone help me with this ?

 

Thanks

Anonymous
Not applicable

Hi @Greg_Deckler ,

 

Thanks for your answer but is not what I'm expecting. For sure , i didn't explain very well. Lets try again with another example.

 

Due the following scenario:

romero10_1-1646731741173.png

 

You can see i have incient number , open and resolved columns. And as you can see the column resolve could or not be filled.

 

What i need is this:

romero10_2-1646731827354.png

Create a new table that is create depending the open and resolve time and if doesn't have any resolved time, have to take the current day.

 

Is this possible to create in DAX or Power Query?

 

I hope you can help me.

 

Thanks

@Anonymous Sure:

Column = IF([INC_RESOLVED_AT] = BLANK(),TODAY(),[INC_RESOLVED_AT])

 

Also, you might find these links helpeful as well:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thats exactly what i need , thansk you so much 🙂

Greg_Deckler
Community Champion
Community Champion

@Anonymous A DAX calculation would be:

Days Open Column = ([INC_RESOLVED_AT] - [INC_OPENED_AT]) * 1. + 1


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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