Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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%]
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |