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 All!
I would like to kindly ask for your help with the following.
I would like to calculate the cummulative avarege of daily sales higher, than 2.
Date Sales Conditional average
2021.06.01 1 0
2021.06.02 2 0
2021.06.03 4 4
2021.06.04 6 5
2021.06.05 2 5
What I would like to achieve is in column "Conditional average".
Do you have any suggestion of dax systanx what can give the awaited result?
Thank you in advance
Br,
S.
Solved! Go to Solution.
Hi, @Anonymous
Thank you for your feedback.
Please check the below.
The best way to understand it is to remove it from the formula and compare the results.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi @Jihwan_Kim !
I forgot to say, that the "sales" column is a measure already (sum of sales). Thus it is not working inside the Allselected function.
Do you have any idea for this alteration?
Thank you
S
Hi, @Anonymous
Please share your sample pbix file's link here.
Hi, @Anonymous
Thank you for sharing.
Please check the link down below.
https://www.dropbox.com/s/im0kkz3yajo89qn/Average.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Dear @Jihwan_Kim
I understood almost every part of your syntax.
Can you please help me with understanding the red highlighted parts?
Thank you
S.
Hi, @Anonymous
Thank you for your feedback.
Please check the below.
The best way to understand it is to remove it from the formula and compare the results.
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 |
---|---|
15 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |