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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
please see bellow a sample of my db.
I'm trying to find a measure to calculate de occupation rate per vessel and voyage. It would be = On board / vessel capacity.
Can you help me with a dax function to do so?
Thanks in advance
| Categoria | Vessel | Origem | Next Port | Destino | Voy | VoyVesYr | Date | Week | Week days | ETA | ATA | ETD | ATD | On Board | Vessel Capacity | Value |
| PAX | V1 | SV | SA | SA | 101 | 101San20 | 19/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 20:30:00 | 21:20:00 | 11:00:00 | 11:15:00 | 72 | 427 | 72 |
| PAX | V1 | SV | SA | SA | 103 | 103San20 | 19/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 14:00:00 | 13:30:00 | 15:00:00 | 15:08:00 | 171 | 427 | 131 |
| PAX | V1 | SV | SA | SN | 103 | 105San20 | 19/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 14:00:00 | 13:30:00 | 15:00:00 | 15:08:00 | 171 | 427 | 40 |
| PAX | V1 | SV | SA | SA | 105 | 107San20 | 20/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 18:00:00 | 17:40:00 | 07:00:00 | 07:10:00 | 177 | 427 | 177 |
| PAX | V1 | SV | SA | SA | 107 | 109San20 | 20/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 10:00:00 | 09:35:00 | 11:00:00 | 11:50:00 | 147 | 427 | 147 |
| PAX | V1 | SV | SA | SA | 109 | 111San20 | 20/02/2020 | 8 | 17/02/2020 - 23/02/2020 | 14:00:00 | 13:50:00 | 15:00:00 | 15:15:00 | 106 | 427 | 106 |
| PAX | V1 | SV | SA | SA | 111 | 117San20 | 21/02/2020 | 9 | 17/02/2020 - 23/02/2020 | 18:00:00 | 17:35:00 | 07:00:00 | 08:05:00 | 159 | 427 | 159 |
| PAX | V1 | SV | SA | SA | 117 | 6Pra20 | 26/02/2020 | 1 | 24/02/2020 - 01/03/2020 | 19:00:00 | 20:23:00 | 16:00:00 | 16:05:00 | 357 | 208 | 357 |
Solved! Go to Solution.
(@Anonymous ,
Occupancy Rate = Sum(Table[Onboard])/Sum(Table[VesselCapacity])
Make sure both these columns are of numeric field.
(@Anonymous ,
Occupancy Rate = Sum(Table[Onboard])/Sum(Table[VesselCapacity])
Make sure both these columns are of numeric field.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |