Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have the following problem:
I have calculated a dynamic measure index:
and the moving average with the following function:
Tabelle1[Werte] are the values for moving average
I cannot create a plot Moving mean as a function of dynamic index. Where is the error?
@Anonymous , Can please explain the logic here
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
refer if this can help
| Faktor 1 | Faktor 2 | Wert | Index | Moving Average Test |
| A | B | 1 | 1 | 0.1 |
| B | A | 4 | 2 | 0.5 |
| B | A | 6 | 3 | 1.1 |
| A | B | 7 | 4 | 1.8 |
| B | B | 3 | 5 | 2.1 |
| A | A | 2 | 6 | 2.3 |
| B | B | 1 | 7 | 2.4 |
| B | B | 5 | 8 | 2.9 |
| B | A | 8 | 9 | 3.7 |
HI @Anonymous,
Did you mean the 'window A' part should be replaced with the current selection from the filter?
If that is the case, you can create an unrelated table for all needed selection values and not have a relationship to the current table.
Then you can use the Dax function to get sections from the filter/slicer to interact with current expressions.
formula =
VAR Window_A =
MAX ( NewTable[Value] )
VAR myResult =
CALCULATE (
SUM ( Tabelle1[Wert] ),
FILTER (
ALLSELECTED ( Tabelle1 ),
Tabelle1[Index_Measur 2] > Tabelle1[Index_Measur 2] - Window_A
&& Tabelle1[Index_Measur 2] <= Tabelle1[Index_Measur 2]
)
)
RETURN
CONVERT ( myResult / Window_A, DOUBLE )
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |