Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have this 3 tables.
My current script is sumx(Quantity,Quantity[Sales] * )
When I use the relate table it doesnt show the 2nd table.
Not sure where I go wrong.
Solved! Go to Solution.
Hi,
I am not sure how the year table is related, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Expected result measure: =
SUMX (
ADDCOLUMNS (
CROSSJOIN ( VALUES ( 'Year'[YEAR] ), VALUES ( CPTMODE[CPTMODE] ) ),
"@sales", CALCULATE ( SUM ( Quantity[Sales] ) ),
"@market%", CALCULATE ( SUM ( Market[Market%] ) )
),
[@sales] * [@market%]
)
Hi,
I am not sure how the year table is related, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Expected result measure: =
SUMX (
ADDCOLUMNS (
CROSSJOIN ( VALUES ( 'Year'[YEAR] ), VALUES ( CPTMODE[CPTMODE] ) ),
"@sales", CALCULATE ( SUM ( Quantity[Sales] ) ),
"@market%", CALCULATE ( SUM ( Market[Market%] ) )
),
[@sales] * [@market%]
)
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |