count rows (date) by month
4 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.7KViews0likes4CommentsCount rows with cunditions by date
Hi, I've a data base like the following, but I'd like to get the number of Request "Mode de traitement = TRAITEMENT IMMEDIAT" by month. Request | Date | Mode de traitement n°1 | 10/04/2018 10:45 | TRAITEMENT IMMEDIAT n°2 | 10/04/2018 10:45 | TRAITEMENT IMMEDIAT n°3 | 10/04/2018 10:33 | TRAITEMENT IMMEDIAT n°4 | 10/05/2018 10:06 | TRAITEMENT IMMEDIAT n°5 | 10/05/2018 09:57 | CREATION DOSSIER n°6 | 10/05/2018 09:53 | CREATION DOSSIER n°7 | 10/06/2018 09:52 | CREATION DOSSIER n°8 | 10/06/2018 09:52 | TRAITEMENT IMMEDIAT n°9 | 10/06/2018 08:27 | TRAITEMENT IMMEDIAT n°10 | 10/07/2018 08:28 | TRAITEMENT IMMEDIAT n°11 | 10/07/2018 08:29 | TRAITEMENT IMMEDIAT n°12 | 10/07/2018 08:33 | TRAITEMENT IMMEDIAT n°13 | 10/08/2018 08:46 | TRAITEMENT IMMEDIAT n°14 | 10/08/2018 09:52 | CREATION DOSSIER I tried to creat an other base with the months using the first day of each month ([Month] = 01/04/2018 ; 01/05/2018 ; ...) and adding a calculate column [#TraitementImmediatByMonth], but I didn't success. How could I get get the following result ? Month | #TraitementImmediatByMonth 01/04/2018 | 3 01/05/2018 | 1 01/06/2018 | 2 01/07/2018 | 3 01/08/2018 | 1 Thank's for your help !673Views0likes0Comments