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.
Hi all,
I got the Gland data from a table called datasheet and the rest of the data from a table called cable schedule and formed a relatioship with its ID. I would like to get the number of times the cable gland appears the combined table below.
eg. A240L 5
CW40L 3
How can I do that?
Thanks.
Solved! Go to Solution.
@Anonymous - If I understand correctly, you want MC Aggregations - https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-p/391698#M129
To elaborate, I'm thinking something like:
Measure =
VAR __Gland = MAX('Table'[Gland]) //get the current value of the thing you are trying to find
VAR __Table =
UNION(
SELECTCOLUMNS(ALL('Table'),"Column",[Gland]),
SELECTCOLUMNS(ALL('Table'),"Column",[Gland 2])
)
RETURN
COUNTROWS(FILTER(__Table,[Column] = __Gland))
Apologies, I know I have already marked it as a solution but I can't seem to get it right.
I tried
VAR tmpCol1 = SELECTCOLUMNS(Datasheet,"Column",[Gland])
VAR tmpCol2 = SELECTCOLUMNS('Cable Schedule',"Column",[ID])
VAR tmpTable = UNION(tmpCol1,tmpCol2)
VAR tmpValue = COUNTX(tmpTable,[Column])
(this doesnt give me the correct values)
and
@Anonymous - If I understand correctly, you want MC Aggregations - https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-p/391698#M129
To elaborate, I'm thinking something like:
Measure =
VAR __Gland = MAX('Table'[Gland]) //get the current value of the thing you are trying to find
VAR __Table =
UNION(
SELECTCOLUMNS(ALL('Table'),"Column",[Gland]),
SELECTCOLUMNS(ALL('Table'),"Column",[Gland 2])
)
RETURN
COUNTROWS(FILTER(__Table,[Column] = __Gland))
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 |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |