Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a table containing a transaction date, customer name and some other values.
I want to be able to apply a fitler to that table to remove records where the customer only has transactions in a single month.
So in the case below remove joe because he only has transactions in a single month
I have tried using countrows but without sucess
thanks!
Tranaction date | Customer Name | Amount |
2023-01-01 | Joe | 1 |
2023-01-01 | Mary | 2 |
2023-02-01 | Mary | 3 |
2023-03-01 | Mary | 4 |
2023-04-01 | Mary | 5 |
2022-11-01 | Ted | 6 |
2022-12-01 | Ted | 7 |
2023-01-01 | Ted | 4 |
2023-02-01 | Ted | 4 |
2023-03-01 | Ted | 7 |
2023-04-01 | Ted | 8 |
thanks @pratyashasamal
Thats getting closer to what I need, however never as straightforward! the table is already being fitlered dynamically using an unlinked date table to return the previous 6 months of transactions. we do this by below dax. this way the user can select January23 and get the last 6 months transactions from the fact table.
So what I really need is a sum of the transactions per customer on the filtered table. Hope that makes sense
dynamic6monthflag =
var to_date= selectedvalue('date table'[endofmonth])
var from_date = selectedvalue('date table'[firstofmonth])
var flag =
IF(max(Table[TransactionDate]) in DATESBETWEEN(Table[TransactionDate],from_date,to_date),1,0)
return flag
Hi @zausten ,
First keep add the date column and other columns that you want and apply the filter to month you want .
Add a measure to count the customers
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
96 | |
84 | |
43 | |
40 | |
35 |