Forum Discussion
Asset Value Timeline Visualization
- Anonymous3 years ago
Hi burtta ,
I created some data:
Here are the steps you can follow:
1. Select [purchase date] and [sell/disposal date] -- Transform – Unpivot Columns.
Result:
2. Create calaculated table.
Date = CALENDAR( DATE( 2021,1,1), DATE( 2021,12,31))3. Create measure.
Measure = var _Qty= COUNTX( FILTER(ALL('Table'), 'Table'[Attribute]=MAX('Table'[Attribute])&& YEAR('Table'[Value])=YEAR(MAX('Date'[Date]))&& MONTH('Table'[Value])=MONTH(MAX('Date'[Date]))),[Item number]) var _sum= SUMX( FILTER(ALL('Table'), 'Table'[Attribute]=MAX('Table'[Attribute])&& YEAR('Table'[Value])=YEAR(MAX('Date'[Date]))&& MONTH('Table'[Value])=MONTH(MAX('Date'[Date]))),[Asset]) return _sum * _Qty4. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- 3 years ago
Here is the measure that resolved my problem.
Prev12MoRevExt (Fleet) =CALCULATE(SUM('Rental Asset Revenue'[Revenue EXT]),CALCULATETABLE('*Date',FILTER('*Date','*Date'[Date] >=DATE(YEAR(TODAY()) - 1, 5, 1)&&'*Date'[Date] <=EOMONTH(TODAY(),-1))))
Hi burtta ,
I created some data:
Here are the steps you can follow:
1. Select [purchase date] and [sell/disposal date] -- Transform – Unpivot Columns.
Result:
2. Create calaculated table.
Date =
CALENDAR(
DATE(
2021,1,1),
DATE(
2021,12,31))
3. Create measure.
Measure =
var _Qty=
COUNTX(
FILTER(ALL('Table'),
'Table'[Attribute]=MAX('Table'[Attribute])&&
YEAR('Table'[Value])=YEAR(MAX('Date'[Date]))&&
MONTH('Table'[Value])=MONTH(MAX('Date'[Date]))),[Item number])
var _sum=
SUMX(
FILTER(ALL('Table'),
'Table'[Attribute]=MAX('Table'[Attribute])&&
YEAR('Table'[Value])=YEAR(MAX('Date'[Date]))&&
MONTH('Table'[Value])=MONTH(MAX('Date'[Date]))),[Asset])
return
_sum * _Qty
4. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly