Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear friends,
i have question, how can i sum actual data only month 1 to 8 within 2020 & 2021 using DAX. Here is the table :
Here is the data :
year | month | forecast | actual |
2020 | 1 | 7 | 7 |
2020 | 2 | 10 | 5 |
2020 | 3 | 10 | 10 |
2020 | 4 | 8 | 8 |
2020 | 5 | 6 | 7 |
2020 | 6 | 5 | 7 |
2020 | 7 | 7 | 7 |
2020 | 8 | 6 | 9 |
2020 | 9 | 10 | 8 |
2020 | 10 | 5 | 9 |
2020 | 11 | 7 | 10 |
2020 | 12 | 9 | 10 |
2021 | 1 | 7 | 9 |
2021 | 2 | 6 | 10 |
2021 | 3 | 9 | 10 |
2021 | 4 | 10 | 6 |
2021 | 5 | 10 | 6 |
2021 | 6 | 9 | 6 |
2021 | 7 | 8 | 7 |
2021 | 8 | 5 | 9 |
2021 | 9 | 9 | |
2021 | 10 | 5 | |
2021 | 11 | 5 | |
2021 | 12 | 10 |
Thanks for help..
Solved! Go to Solution.
@ade_kurniawan Oh sorry, I didn't understand. Here are the correct measures:
Here are the two measures, to be included in the new table with the column year:
Try and tell me if it works!
B.
How about find number 8 automatically ? when data updated at month 9, i hope will automatically update sum month 1 to 9.. thanks
@ade_kurniawan Oh sorry, I didn't understand. Here are the correct measures:
Sir, its not working. the result of Var MAXXX is not 8. please help.. thanks
@ade_kurniawan Hello,
can you give me the expected result? in order to be sure you understand the request.
Thx,
B.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
16 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
11 | |
10 | |
10 | |
8 |