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.
hi having problem with this visual any suggestion how to insert the filter of mma 3mma 12mma
in my visual is montly share of market by company
measure:
and im using switch for my filter
measure for 3mma :
I don't think I fully understand your requirement. However, you may try
3MMA SOM =
CALCULATE (
AVERAGEX (
SUMMARIZE (
mv_fact_sales_aggr,
mv_fact_sales_aggr[company],
mv_fact_sales_aggr[MonthYear]
),
[SOM]
),
DATESINPERIOD (
mv_fact_sales_aggr[date],
LASTDATE ( mv_fact_sales_aggr[date] ),
-3,
MONTH
)
)
sorry sir, is it possbile to have moving average in a monthly chart?
@Easley06
Please try
3MMA SOM =
VAR CurrentDate =
MAX ( mv_fact_sales_aggr[date] )
VAR PreviousDate =
EOMONTH ( CurrentDate, -3 )
RETURN
CALCULATE (
AVERAGEX (
SUMMARIZE (
mv_fact_sales_aggr,
mv_fact_sales_aggr[company],
mv_fact_sales_aggr[MonthYear]
),
[SOM]
),
mv_fact_sales_aggr[date] <= CurrentDate,
mv_fact_sales_aggr[date] > PreviousDate
)
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 |
---|---|
49 | |
27 | |
20 | |
15 | |
12 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |