Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ciken
Resolver I
Resolver I

FInd Status at end of given month

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. 

 

ciken_0-1690991727349.png


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.ValueJune 2023July 2023
Available for Sale at HQ1 
Loaned 1


What I end up with is 

New.ValueJune 2023July 2023
 1 
Availabe_for_loan1 
Available for sale at HQ1 
Loaned 1



HELP???

1 REPLY 1
Ahmedx
Super User
Super User

read about the

LASTNONBLANK
LASTNONBLANKVALUE

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.