Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi guys, I need to do an analysis and I'm struggling with it. Basically I have three important things on my database: the date, the distribution center code and the vehicle's plate. I need to calculate the percentage of days that a specific vehicle shows up on the distribution center and classify them according to it (over 60% the vehicle is considered reliable and below that is not). I'm struggling with the fact that a vehicle can show up to multiple centers and on different months and the distribution centers have a different total of operating days.
I'm really sorry. I could not figure out how to put my excel sampla here. So I had to take a printscreen of it. Basically what I have in my data base is the following:
What I need to do: a distinctcount of dates from a month for each distribution center (to see how many days they opened in January, for example) and a distinctcount of dates that a specific vehicle showed up to that specific distribution center in each month. So I would like to have a column that repeated the number of days that the center opened in that month (in January, the distribution center 100 worked 30 days, so all lines from it and January would have 30) and a column that repeated the number of days that the vehicle showed up to that center (the ABC123 showed up 20 days of january). If I could do that, would be a matter of dividing 20/30 for every row with both conditions and it would return 0,66 (or 66%). What I need to do is classify that percentage with an if (if x% >= 0,6; "reliable"; "not reliable") in order to count how many plates are reliable and how many are not for each month.
I hope that helps. Please, do you have any idea on how to do it? Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous ,
Is this what you want? PBIX file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Is this what you want? PBIX file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much. I can not express how grateful I am for you figuring how to solve this out @Icey . Apparently this is exactly what I was looking for. I'll try on my database and I will let you know. Thank you again. Have a great weekend!
Pedro
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |