count rows (date) by month
3 TopicsCount a sale for a customer only outside of 15 days from the first sale, and any subsequent sales
My dashboard for customer sales has many "duplicates". For example: Customer Bryan Smith has made 7 purchases in the past year total. For my specific dashboard, I want to filter out the cells that are not highlighted in green (rows 3, 7, and 😎 because they are within 15 days of a previous purchase. I have a Customer Key (CusKey) as a unique identifier for my customers. The calculated column I created is: dupeTest = VAR MaxDateKey = 'Sales'[DateOfPurchase] VAR MinDateKey = maxdatekey - 15 VAR Calc = CALCULATE ( COUNTROWS ( 'Sales' ), FILTER ( 'Sales', 'Sales'[DateOfPurchase] >= MinDateKey && 'Sales'[DateOfPurchase] <= MaxDateKey && 'Sales'[CusKey] = CusKey ) ) RETURN IF ( calc > 1, 0, 1 ) And then to get my desired result, I filtered out all 0's in that column so those entries wouldn't be in my data. The data I'm trying to filter out is still present. In this specific example with my formula, row 3 would be erased because it is within 15 days of row 1's date (this is what I want). Row 7 and 8 still remain although they are 15 days within row 6. My desired results after implementing that formula is as follows: Help would be greatly appreciated!509Views0likes1CommentCount how many times a transaction is made, for each costumer
Hello, hope you'll be able to help me.. So, what I have is: 2 Tables related to each other by a many to one relationship. The first table contains the names and the Serial Number of each costumer The secondo table is made by many coloums (Serial Number - day and time of the transaction - transaction $ -...-...) I need to know with which frequency each costumer make a transaction, like: 3 times per day this costumer (Serial Number) has made a transaction and how much is the total amount and 10 costumer make 4 transaction every day How can I do that? Thank you so much4.1KViews0likes9Commentscountif in Power BI
Hi! Pls help as I can not get through this. I have this data in 'H1 raw data final' table ID Domain Shortmonth Darab (piece) 1 IT jan 1 2 IT febr 1 3 NW jan 1 4 NW febr 1 5 IT febr 1 6 NW febr 1 7 IT febr 1 8 IT jan 1 9 IT febr 1 10 NW jan 1 11 IT febr 1 And would like to create a new table 'Monthlygroupby' like this: Month IT NW Totalmonth jan 2 2 4 febr 5 2 7 I have started a new table and managed to create a table with totalmonth, but I do not manage to put in the filtered IT and NW data. Monthlygroupby = GROUPBY('H1 raw data final';'H1 raw data final'[Shortmonth];"totalmonth";SUMX(CURRENTGROUP();'H1 raw data final'[Darab])) Thanks in advance!Solved1.7KViews0likes4Comments