Forum Discussion
How to visualize matrix by scrolling date slicer
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Thank you for your response.
Data:
| Responsibility | Downtime(Minutes) | Uptime Percentage |
| Others | 89 | 98.67% |
| Others | 84 | 98.67% |
| Others | 140 | 98.67% |
| TE03 Team | 283 | 99.34% |
| Others | 60 | 98.67% |
| Others | 98 | 98.67% |
| Others | 110 | 98.67% |
| Plan | 93 | 99.78% |
DAX of UpTime Percentage:
Take "TE03 Team" from the data as an example, the downtime is 283 minutes. I scroll the time slicer to get a start date of 2022/10/1and an end date of 2022/10/7 which is 7 days, 10080 minutes in total (60x24x7), and 10080 will show on the column "Period of Time". At the same time, I can use the DAX to get the Uptime Percentage. It will be (10080-1503)/10080x100%=97.19%.
Is there any possibility that I can make the start date and the end date as variables to put them into DAX, and it will be like [("end date" - "start date")-downtime]/("end date" - "start date")x100%. But how can I achieve that and how to convert them into minutes simultaneously?
- lbendlin3 years agoSuper User
Your sample data is missing the start datetime and end datetime columns
- Jesse_Tsai3 years agoFrequent Visitor
Thank you for your response. I don't have the start datetime and the end datetime columns now. The period of time is a month in minutes as default, so I hope I can catch the two dates when I scroll the date slicer to calculate.