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.
I'm seeking to create a visual that displays annual values as a trend line along a fiscal year (text field) axis and a target line that is the calculated window average of the three fiscal year periods prior to the latest or current period. So in the image below, the calculation would average the values from FY17, FY18 and FY19, but dynamically update once a new fiscal year period is added to the data. PBIX is linked here. Thanks.
Solved! Go to Solution.
Hi @TimQ
Based on the pbix file provided, I did the following
1. Created a calculated column called Year and set the type to number
2. Created a measure called Average
Average = VAR MaxYear = Calculate(MAX(Sheet1[Year]),ALL(Sheet1) ) Return CALCULATE ( AVERAGE(Sheet1[Amount]), Filter(ALL(Sheet1), MaxYear -Sheet1[Year] >= 1 && MaxYear -Sheet1[Year] <=3 ) )
3. Plotted this on the line caahrt as values.
I have attached pbix for your reference
Cheers
CheenuSing
Hi @TimQ
If it worked please accept it as solution.
Cheers
CheenuSing
Hi @TimQ
Based on the pbix file provided, I did the following
1. Created a calculated column called Year and set the type to number
2. Created a measure called Average
Average = VAR MaxYear = Calculate(MAX(Sheet1[Year]),ALL(Sheet1) ) Return CALCULATE ( AVERAGE(Sheet1[Amount]), Filter(ALL(Sheet1), MaxYear -Sheet1[Year] >= 1 && MaxYear -Sheet1[Year] <=3 ) )
3. Plotted this on the line caahrt as values.
I have attached pbix for your reference
Cheers
CheenuSing
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 |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |