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.
Hello everyone, everything good?
I have a table where I need to perform a sum of information from the previous year with the current year to generate a kind of accumulated to perform a rate calculation.
The table I have is the one in the following example:
And the calculation I need to perform would be something that would generate a table as a result in the following sense:
Add the information for 2017 + 2018 to the 2018 result,
for 2019, it would be the sum of 2017 + 2018 + 2019
And so on.
But the most important thing is to keep all the possibilities of filters that my table makes available (I need to perform the calculation without the ALL function or making the filters remain).
Could you help me with the formula?
Solved! Go to Solution.
Hi @ErickReiis
You can refer to the following measure, it will keep the filter.
Measure = CALCULATE(SUM('Table'[N_De]),FILTER(ALLSELECTED('Table'),'Table'[Moda] in VALUES('Table'[Moda])&&'Table'[Ano]<=SELECTEDVALUE('Table'[Ano])))
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ErickReiis
You can refer to the following measure, it will keep the filter.
Measure = CALCULATE(SUM('Table'[N_De]),FILTER(ALLSELECTED('Table'),'Table'[Moda] in VALUES('Table'[Moda])&&'Table'[Ano]<=SELECTEDVALUE('Table'[Ano])))
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
105 | |
105 | |
88 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
81 | |
72 |