Hi,
What is the best way to get a running total of assets by month. My table has a "date created" and "date retired" column. I want to look at how many assets were in service each month. Here is an example of data
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
I tried to simplify the sample like below.
I suggest having a calendar table like below.
Asset count measure: =
CALCULATE( COUNTROWS(Data),
FILTER( Data,
Data[Created Date] <= MAX( 'Calendar'[Date]) &&
OR( Data[Retired Date] >= MIN('Calendar'[Date]), Data[Retired Date] = BLANK())
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
I tried to simplify the sample like below.
I suggest having a calendar table like below.
Asset count measure: =
CALCULATE( COUNTROWS(Data),
FILTER( Data,
Data[Created Date] <= MAX( 'Calendar'[Date]) &&
OR( Data[Retired Date] >= MIN('Calendar'[Date]), Data[Retired Date] = BLANK())
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
94 | |
82 | |
42 | |
32 | |
28 |
User | Count |
---|---|
130 | |
95 | |
84 | |
46 | |
40 |