Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have a table that contains asset information such as Item Number, Fleet Value (Asset * Qty), purchase date and sell/disposal date. I am looking for some help in creating a visual to show sum(fleet value) by month. Do you guys have any ideas on how to relate an aggregate fleet value between months of being purchased and sold?
Solved! Go to Solution.
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
Here is the measure that resolved my problem.
Here is the measure that resolved my problem.
Hi,
Share some sample data and show the expected result.
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 39 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 34 | |
| 32 | |
| 29 |