I am trying to calculate a rolling/weighted sum of revenue. Here is my scenario. I have pivoted Cost by order Number and material number. whenever the Same material is used between orders then it should sum up the cost by material. In this scenario 555+ 900 and so on. The sum should happen only when they have material in common.
Solved! Go to Solution.
Hello @sgsukumaran,
You need to create a Measure including the functions ISFILTERED and HASONEFILTER
That way you tell to you measure if the Actual $'s is opened in any way to behave in a way, if not to just do the running total.
Below is the Basic Running total, just need to update with your filters.
CALCULATE( [Actual $'s]; FILTER( ALLSELECTED(your table[Row Labels]); ISONORAFTER(your table[Row Labels]; MAX(your table[Row Labels]); DESC) ) )
Hello @sgsukumaran,
You need to create a Measure including the functions ISFILTERED and HASONEFILTER
That way you tell to you measure if the Actual $'s is opened in any way to behave in a way, if not to just do the running total.
Below is the Basic Running total, just need to update with your filters.
CALCULATE( [Actual $'s]; FILTER( ALLSELECTED(your table[Row Labels]); ISONORAFTER(your table[Row Labels]; MAX(your table[Row Labels]); DESC) ) )
Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
368 | |
98 | |
67 | |
57 | |
48 |
User | Count |
---|---|
337 | |
119 | |
88 | |
71 | |
62 |