Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello community,
I have a monthly fact table with two columns:
Date | Value |
01/01/2023 | 232 |
01/02/2023 | 241 |
01/03/2023 | 245 |
01/04/2023 | 247 |
01/05/2023 | 244 |
01/06/2023 | 246 |
01/07/2023 | 244 |
01/08/2023 | 243 |
01/09/2023 | |
01/10/2023 | |
01/11/2023 | |
01/12/2023 |
I calculate the ytd average with this measure:
Date | Value | YTD Average |
01/01/2023 | 232 | 232 |
01/02/2023 | 241 | 237 |
01/03/2023 | 245 | 239 |
01/04/2023 | 247 | 241 |
01/05/2023 | 244 | 242 |
01/06/2023 | 246 | 243 |
01/07/2023 | 244 | 243 |
01/08/2023 | 243 | 243 |
01/09/2023 | 243 | |
01/10/2023 | 243 | |
01/11/2023 | 243 | |
01/12/2023 | 243 |
Solved! Go to Solution.
Hi @saiko_cs ,
I have created a simple sample, please refer to it to see if it helps you.
Create a measure.
Measure =
AVERAGEX(FILTER(ALL('Table'),'Table'[Date]<=SELECTEDVALUE('Table'[Date])),'Table'[Value])
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot, that's exactly what I try to find (thumb up)
Hi @saiko_cs ,
I have created a simple sample, please refer to it to see if it helps you.
Create a measure.
Measure =
AVERAGEX(FILTER(ALL('Table'),'Table'[Date]<=SELECTEDVALUE('Table'[Date])),'Table'[Value])
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |