Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello Everyone,
Having trouble getting a calculation result to render in a table and I am hoping someone can point out a glaring mistake I am making.
First a little background about the data I am working with:
My goal is to look at an customers total components and determine how many belong each header.
I wrote the following measure:
Owned Related Component =
var component_holdings = SELECTCOLUMNS(ALLEXCEPT(d_product_c, d_product_c[access_id]),"ID", VALUES(d_product_c[access_id]))
var pack_components = SELECTCOLUMNS(d_pack_component_products,"ID",VALUES(d_pack_component_products[access_id]))
var overlap = NATURALINNERJOIN(component_holdings,pack_components)
RETURN
COUNTROWS(overlap)My thinking here was to make a variables for:
And then finally count the rows and have a value for all the components a customer owns relative to all components a header product actually has.
The above equation returns an error which I am fairly certain is a result of the inner join.
Solved! Go to Solution.
@Anonymous - It's failing on the SELECTCOLUMNS - try this:
Owned Related Component =
var component_holdings = SELECTCOLUMNS(d_product_c,"ID", [access_id])
var pack_components = SELECTCOLUMNS(d_pack_component_products,"ID", [access_id])
var overlap = NATURALINNERJOIN(component_holdings,pack_components)
RETURN
COUNTROWS(overlap)
@Anonymous - It's failing on the SELECTCOLUMNS - try this:
Owned Related Component =
var component_holdings = SELECTCOLUMNS(d_product_c,"ID", [access_id])
var pack_components = SELECTCOLUMNS(d_pack_component_products,"ID", [access_id])
var overlap = NATURALINNERJOIN(component_holdings,pack_components)
RETURN
COUNTROWS(overlap)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 38 | |
| 31 | |
| 30 |