Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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%]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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%]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
55 | |
27 | |
23 | |
14 | |
11 |
User | Count |
---|---|
78 | |
63 | |
46 | |
17 | |
12 |