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
Hi team, if anyone can help me on this.
In my dashboard, I have workqueue and workqueueitem Dataverse tables conencted via a Direct Query.
Trying to Count (sum) of all the WorkQueueItemID
where Statecode = 2
CompeltedOn in the Last 60 mins.
Challenge,
The CompeltedOn (datetime) is showing in UTC, I have already got CurrentTimeStampSydney which I can use as Now() time.
in a directQuery how can I convert CompletedOn to AUST time and then check how many are in this status for last 60 mins?
I've tried
timeDifferent without any conversion, but failing to get the SUM/Count.
Not sure where my query is going wrong.
1. workqueueitem[compeltedon] >= Now() + Time(0,60,0)
2. TimeDifference (workqueueitem[compeltedon] - Now() + Time(0,60,0))
Solved! Go to Solution.
Hi! @hsiddiq
Try this CompletedOn = Table1[CompletedOn] + TIME(10, 0, 0)
Hi @hsiddiq ,
Thank you for reaching out. I understand you are trying to count the WorkQueueItemID where Statecode = 2 and CompletedOn is within the last 60 minutes, but you are facing challenges with the datetime conversion from UTC to AEST.
Firstly, I would like to ask if the suggestion provided by another user helped resolve your issue.
For counting calculation, you could try:
Processed_last60min =
CALCULATE(
COUNT('workqueueitem'[workqueueitemid]),
'workqueueitem'[statecode] = 2,
'workqueueitem'[completedon] >= (CurrentTimeStampSydney - TIME(1, 0, 0))
)
If the issue persists, could you please provide some sample data and the expected results? This will help us better understand the problem and provide a more accurate solution.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hsiddiq ,
Thank you for reaching out. I understand you are trying to count the WorkQueueItemID where Statecode = 2 and CompletedOn is within the last 60 minutes, but you are facing challenges with the datetime conversion from UTC to AEST.
Firstly, I would like to ask if the suggestion provided by another user helped resolve your issue.
For counting calculation, you could try:
Processed_last60min =
CALCULATE(
COUNT('workqueueitem'[workqueueitemid]),
'workqueueitem'[statecode] = 2,
'workqueueitem'[completedon] >= (CurrentTimeStampSydney - TIME(1, 0, 0))
)
If the issue persists, could you please provide some sample data and the expected results? This will help us better understand the problem and provide a more accurate solution.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi! @hsiddiq
Try this CompletedOn = Table1[CompletedOn] + TIME(10, 0, 0)
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 |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 6 | |
| 5 |