March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a data model that contains 3 tables: Tickets, Time Entry, and Members
I want to created a caluated column called Assigned Ticket Count for each row of the Member table. Here is the formula I tried first:
So I tried:
Solved! Go to Solution.
Hi, @msimmonsmcse
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Tickets:
Members:
You may create a calculated column as below.
Assigned Ticket Count =
var _result =
COUNTROWS(
FILTER(
Tickets,
CONTAINSSTRINGEXACT([ResourceList],EARLIER('Members'[MemberID]))
)
)
return
IF(
ISBLANK(_result),
0,
_result
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @msimmonsmcse
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Tickets:
Members:
You may create a calculated column as below.
Assigned Ticket Count =
var _result =
COUNTROWS(
FILTER(
Tickets,
CONTAINSSTRINGEXACT([ResourceList],EARLIER('Members'[MemberID]))
)
)
return
IF(
ISBLANK(_result),
0,
_result
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Worked great, thank you for supplying a solution instead of simply giving instructions on how to ask the question. Sometimes beginners dont even know what they are asking for. I appreciate it!
@msimmonsmcse - Having trouble following this. Sample data would help but in theory, something like:
Column =
COUNTROWS(FILTER('Other Table',[column in other table]=[column in this table] && [another column in the other table] = [another column in this table]))
Otherwise,
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |