Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello!
I have a table of ticket data where I for each critical ticket need to calculate the time since the last critical ticket was registered.
Been trying to solve this for a few hours now without success.
Basically: If Priority = Critical, calculate time between regdate and previous critical tickets' regdate (for each row). The goal is to calculate the average time between critical tickets being registered.
Any help would be greatly apreciated!
Hi Jowh,
Not sure about your use case, is it something like below:
Hello and thank you!
It is something similar but in the reverse order I suppose. Latest date should show the previous max date with Priority if that makes sense. Also presented in hours or minutes but I think I could figure that part out myself in worst case 🙂
Good Luck!
Not really getting this to work 😞 Tried to change to the following:
Time Since Last Critical =
VAR CurrentDate = Issues[DATE_CREATED]
VAR TABLE1 =
CALCULATETABLE(
'Issues',
FILTER ('Issues', 'Issues'[ISSUE_PRIORITY]="Critical"),
FILTER ('Issues', 'Issues'[DATE_CREATED]<CurrentDate)
)
VAR MinDate =
MAXX(
Issues,
Issues[DATE_CREATED]-CurrentDate)
RETURN
IF (
Issues[ISSUE_PRIORITY]="Critical",
INT( MinDate),blank()
)I don't really understand the MinDate logic though (tried both MINX and MAXX)
The first argument of MINX shall be the filtered table - Table1, instead of the native table - Issues.
MINX is to scan Table1 and get the immediate last date tagged "Critical."
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |