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
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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

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

Thats exactly what i need , thansk you so much 🙂

Greg_Deckler
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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! Prices go up Feb. 11th.

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.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.