Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello! So I am creating two measures that will calculate the average monthly & yearly from total cost for fiscal month/year. It seems to be just cacluating the total cost and duplicating the values for each month but if you look at the sum totals they are different. Could it but the [Fiscal Year] or [Fiscal Month Name], can anyone provide some assistance?
NPD_ST_AVGMonthly =
AVERAGEX(
VALUES('Date'[Fiscal Month Name]),
[NPD_ST_TotalCost]
)
NPD_ST_AVGYearly =
AVERAGEX(
VALUES('Date'[Fiscal Year]),
[NPD_ST_TotalCost]
)
NPD_ST_TotalCost = SUM('NP_SP_ST_Combined'[Materials Cost]) + SUM('NP_SP_ST_Combined'[Labor Cost])
Solved! Go to Solution.
Hi @Anonymous
This will always duplicate because FY2015 will always be 1 value and hence it will be same. So ideally the measure should be same for all months and years because it is average.
1. Averagex(all(fiscal year),total cost.
2. Averagex(all(Month Name),Total Cost.
Please mark solution if this works with you.
Hi @Anonymous
This will always duplicate because FY2015 will always be 1 value and hence it will be same. So ideally the measure should be same for all months and years because it is average.
1. Averagex(all(fiscal year),total cost.
2. Averagex(all(Month Name),Total Cost.
Please mark solution if this works with you.
@Anonymous , not sure what is wrong with monthly
may be you need this
NPD_ST_AVGMonthly=
calculate(AVERAGEX(
VALUES('Date'[Fiscal Month Name]),
[NPD_ST_TotalCost]
), filter(all('Date') , 'Date'[Fiscal Year] =max('Date'[Fiscal Year])))
or this you need for yearly
NPD_ST_AVGYearly =
calculate(AVERAGEX(
VALUES('Date'[Fiscal Month Name]),
[NPD_ST_TotalCost]
), filter(all('Date') , 'Date'[Fiscal Year] =max('Date'[Fiscal Year])))
or you need for yearly
NPD_ST_AVGYearly =
calculate(AVERAGEX(
VALUES('Date'[Fiscal Year]),
[NPD_ST_TotalCost]
),all('Date') )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |