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 PBI Community,
I've been trying to figure out the best measure to calculate the number of devices in a specific status at the end of a given month. The problem is sometimes devices change status multiple times within a month so I only want where it finishes.
I have tried CLOSINGBALANCEMONTH, I have tried MAX(status) but they all come back with the wrong info. Here are a few of the lines of my table that would give the data. This specific example should look like this....
| New.Value | June 2023 | July 2023 |
| Available for Sale at HQ | 1 | |
| Loaned | 1 |
What I end up with is
| New.Value | June 2023 | July 2023 |
| 1 | ||
| Availabe_for_loan | 1 | |
| Available for sale at HQ | 1 | |
| Loaned | 1 |
HELP???
read about the
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |