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 everyone,
I am attempting to create a calculated column in the 'WFS Metrics' table with the following formula. My goal is to count the rows in the 'BAT Counts' table where the 'BAT Counts'[Full Name] field matches a name in the 'WFS Metrics'[Full Name] table/field while also making sure that the 'ACS BAT'[Condition] field equals "DCS-START" while none of the three tables have an active relationship. Any help would be appreciated, thanks.
Solved! Go to Solution.
Thanks for the replies from Laxmanjatoth and lbendlin.
Hi @rschubs ,
It is recommended that you create relationships between the three table. The RELATED function can then be used:
Column = COUNTROWS(FILTER('BAT Counts',RELATED('ACS BAT'[Condition])="DCS-START"&&'BAT Counts'[Full Name]=RELATED('WFS Metrics'[Full Name]))
)
The LOOKUPVALUE function can be used without creating a relationship, for example:
condition = LOOKUPVALUE('ACS BAT'[Condition],'ACS BAT'[Index],'BAT Counts'[Index])
Column = COUNTROWS(FILTER('BAT Counts','BAT Counts'[Full Name]=RELATED('WFS Metrics'[Full Name])&&'BAT Counts'[condition]="DCS-START"))
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the replies from Laxmanjatoth and lbendlin.
Hi @rschubs ,
It is recommended that you create relationships between the three table. The RELATED function can then be used:
Column = COUNTROWS(FILTER('BAT Counts',RELATED('ACS BAT'[Condition])="DCS-START"&&'BAT Counts'[Full Name]=RELATED('WFS Metrics'[Full Name]))
)
The LOOKUPVALUE function can be used without creating a relationship, for example:
condition = LOOKUPVALUE('ACS BAT'[Condition],'ACS BAT'[Index],'BAT Counts'[Index])
Column = COUNTROWS(FILTER('BAT Counts','BAT Counts'[Full Name]=RELATED('WFS Metrics'[Full Name])&&'BAT Counts'[condition]="DCS-START"))
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Matching Count =
CALCULATE(
COUNTROWS('BAT Counts'),
FILTER(
'BAT Counts',
'BAT Counts'[Full Name] = 'WFS Metrics'[Full Name] &&
'ACS BAT'[Condition] = "DCS-START"
)
)
let me know if you still help
Best,
Laxman jatoth
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck? How are these three tables related?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |