Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Each unique ID can have multiple(tags) rows in my data set.
I want a measure to countdistinct unique IDs which contain a specific Tag.
https://drive.google.com/open?id=10hKDACMttzQKfZI1lo8IFsuHY3JWVHsK
Powerbi file is attached here.
What I want to calculate in a metric :
1. Total Chats by each Agent which contain Tag1.
2. Total count of unique tags by each agent for chats which contain Tag1.
Kindly help
Here's the data for reference.
Hi @andycox ,
Please use below measures.
Thank you @harshnathani for quick reply.
Here's what I am struggling with still.
Average of unique tags by each agent for all chats which contain Tag1.
E.g. If an Agent has 150 chats. 100 of them have Tag1 and other tags. 50 of them do not have Tag1.
I need to calculate the average of unique tags used for each of those 100 chats.
Also , in another calculation, list down all unique chat IDs ( with Tag1) and see how many tags does each conversation have.
Is that something you can help with?
@andycox ,
The question is totally confusing.
No idea on what does this mean 'unique tags by each agent for all chats which contain Tag1' .
You have a column for Tags where you have values like Tag1 , Tag3, etc. What does unique tag which contains Tag1 mean. Do you want the unique chat id's which contain Tag1 ?
For the 2nd question, is this what you need.
@harshnathani Thank you for the response, very helpful.
I have used your UniqueTags in this way:
Agent Name | ChatID | UniqueTags |
Agent1 | gh25 | 2 |
Agent1 | xf23 | 2 |
Agent2 | dxf23 | 2 |
@andycox ,
Please use the below measure
Hi @andycox ,
Did the solution work for you.
Please mark as solution for other community members to benefit.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |