Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a data requirement to count only the first occurance of an event.
So if a Sales rep contacts a company, only the first contact is to be counted.
Sales Rep | Company | Month |
ABC | Company A | Jan |
ABS | Company B | Jan |
ABC | Company A | Feb |
In this example, the companies the sales rep has contacted is 2. (Company A and Company B)
When I drag in month, I get 2 for Jan, 1 for Feb. which is correct but
I dont need to count the company if it has been counted before.
thanks
Hi,
Is there a way this can be solved please?
thanks.
Can you post a screenshot with expected result?
Regards,
Kishore
Hi,
Try this,
Calculate(DistinctCount(Table[Company]), Sales, [#SalesContact] > 0,Removefilters(ales, [#Month] )
Hi, I have used Calculate(DistinctCount(Table[Company]), Filter(Sales, [#SalesContact] > 0) this works without the month field. When I use the month field is when the company is counted for each month.
Hi @PBIfanatic ,
Can you create a measure like this and see if it is working?
Hi thanks for your reply @Kishore_Kadhir
Tried it but it didnt work, values came as 1 for each month.
So above is not counting when ABC contacted Company A for the second time
I have also made one video on the ALLEXCEPT concept here https://youtu.be/WCMwCj29TTU
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |