The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everyone.
I have the following data:
As you can see it is the same client, who has been visited on 3 different days, and on some of those days there has been more than one meeting
What I have is the data of the count of meetings I have had with that client (5), but what I am also looking for is the number of visits per client (3), regardless of how many meetings I have had.
That is, I seek to group by date: I have visited the Contoso client on (3) different dates, in this year (chosen period)
I have tried with this formula, but I do not achieve the desired result
CALCULATE(COUNT(Appointments[Client]),FILTER(Appointments,DISTINCT(Appointments[Meeting Date])),USERELATIONSHIP('Chosen Period'[Date],Appointments[Meeting Date]))
Thanks for the help
Thank you very much for the reply.
Although the solution you propose only works if the data is filtered by a single client (1): meetings (5) and visits (3)
But when I want to see the visits of all customers, then the data is not correct (it should be a number between 187 and 297)
Try this!
Visits to Client = sumx(VALUES(Appointment[Meeting Date]),DISTINCTCOUNT(Appointment[Client]))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
79 | |
78 | |
47 | |
39 |
User | Count |
---|---|
147 | |
115 | |
65 | |
64 | |
53 |