Forum Discussion
Ciria
8 years agoAdvocate III
Cumulative Sales Without Dates on Rows
Dears :smileysad: These days I am working in building a table with manifolds KPI's to monitor sales evolution. Following Commercial Chief Officer's advices I'm creating two tables, one table lead...
- 8 years ago
Hi Ciria,
I created a solution based on your sample.
1. Add an index column in the table "Master_Item_all".
Index = mid([Family], 8, 3) // why 3? In case you have "Family 100"
2. Create a new measure.
Total Sales Cumulative = CALCULATE ( [Total Sales], FILTER ( ALL ( Master_Item_All ), Master_Item_All[Index] <= MAX ( Master_Item_All[Index] ) ) )Best Regards,
Dale
Ciria
8 years agoAdvocate III
In the report uploaded (dummy), Families appear like Family 1, Family 2 and so on so forth.
In the private model I am using families are like: Milk, Meal, Fish Oil, Butter, etc, so, different caracters lenght or not folllowing a continuos List as on Dummy model.
Within Dummy Model I've created two measures.
- Using your idea with Index, creating a Measure to create cumulative sales when you order by Family name.
- Using Rankx function and total sales, creating a Measure to create cumulative sales based on Rank or Total Sales.
- See Report 1 Page to check it out.
Awaiting for your feedback :-)
Regards,
Ciria
8 years agoAdvocate III
I've found this tutorial within PowerBi Tips, and I believe this has to do with our conversation.
Please let me know what you think and I hope it results you handy.

