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.
Hello, my dataset is customer service data with a date, thread id, subject, and message. Every time there is a message a new row is populated, and if it was part of an ongoing message the thread id is the same.
What I am trying to do is make a card that will count the amount of messages in a thread, then give me an average of all threads, but exclude any thread where the count is 1 as that would be a new thread that has not been touched.
I made a quick measure and this is what it gave me, but I can't use the filter on the visual for "show items when value..." as the drop down does not work and the input box is greyed out. Any ideas? Thanks!
Solved! Go to Solution.
I would try a measure like this one.
Avg Messages Per Thread =
VAR summary =
SUMMARIZE (
'CareConvos',
'CareConvos'[ThreadId],
"cCount", COUNT ( 'CareConvos'[ThreadId] )
)
RETURN
AVERAGEX ( FILTER ( summary, [cCount] > 1 ), [cCount] )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks a million Pat! That actually worked perfectly. Now I am going to pick it apart and try to figure out why it works!
I would try a measure like this one.
Avg Messages Per Thread =
VAR summary =
SUMMARIZE (
'CareConvos',
'CareConvos'[ThreadId],
"cCount", COUNT ( 'CareConvos'[ThreadId] )
)
RETURN
AVERAGEX ( FILTER ( summary, [cCount] > 1 ), [cCount] )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |