rolling sum
6 TopicsRepeat ID within a Rolling 12 month calculated Column
Hello All, Unfortunately, I am unable to share my data for security reasons. I am looking to create 2 columns depending on Category 1 or 2 equalling YES, it will tell me if the customer ID has appeared before within the last 12 months and if so how many times. an example of my data is below Row ID Date customer ID Category 1 Category 2 1 01/01/2022 1 YES NO 2 01/01/2022 2 YES NO 3 01/02/2022 1 NO YES 4 01/03/2022 1 YES YES any help would be great, THANKS ALL968Views0likes4CommentsRolling Sum issue - help
Hi, can someone help me to calculate the Rolling Sum (the last column in the below example). I have Pro Id, Year-month, Total Bonus for each Year-month, and few other columns in the visual as shown below. I need a Rolling Sum of Bonus (last column) for each Pro Id as shown in example below. Tried the following DAX measure, but it's not giving me expected results. Please advise. Rolling Sum Bonus = CALCULATE('Mesures Table'[Total Bonus], FILTER(ALLSELECTED(Table1),Table1[Pro Id]<=MAX(Table1[Pro Id])),FILTER(ALL('Date Dim'),'Date Dim'[Year-Month Code] <= MAX('Date Dim'[Year-Month Code]) && 'Date Dim'[Year] <= MAX('Date Dim'[Year]))) Pro Id Name Account Name Profile Name Year-Month Total Bonus Rolling Sum Bonus 2200720 ALAMO AGH DIST Sep-21 17707 17707 2200720 ALAMO AGH DIST Oct-21 1897.5 19604.5 2200720 ABC Inc ALAMO AGH DIST Feb-22 2307.36 21911.86 2200720 ABC Inc ALAMO AGH DIST Apr-22 1129.3 23041.16 2200720 ABC Inc ALAMO AGH DIST Jun-22 8806.7 31847.86 2200720 ABC Inc ALAMO AGH DIST Jul-22 713 32560.86 2200720 ABC Inc ALAMO AGH DIST Aug-22 607.2 33168.06 2379628 ABC Inc XYZ AGI Inc Oct-21 638.94 638.94 2379628 ABC Inc XYZ AGI Inc Mar-22 1426 2064.94 2379628 ABC Inc XYZ AGI Inc Jun-22 92 2156.94 2379628 ABC Inc XYZ AGI Inc Jul-22 577.3 2734.24Solved723Views0likes4CommentsSum of Next 7 Day Sales
This is a 2 part question: today is 7/13/22 I am trying to calculate my COGS for the next 7 days based on LY COGS. I started my measure with trying to calculate LY COGS but as you can see in the photo below they seem to be off by 1 day...what am i doing wrong? COGS Next 7 = CALCULATE( [COGS], DATEADD('Date'[Date], -1, YEAR)) Once I have that I would like to do a rolling sum of 7 days looking forward. so my true COGS Next 7 would equal LY COGS 7/13/22-7/19/22 - 82,858 How do i create that DAX??? PLEASE HELP 🐵Solved817Views0likes1Comment