Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I want to fill 'Cumulative Ach Qty' column in 'Target Table' when 'Sales Table' is updated. Can anyone suggest me an expression for this?
Solved! Go to Solution.
Hi @Anonymous,
In your scenario, you can create a calculated column like below:
Cumulative Ach Qty = SUMX(RELATEDTABLE('Sales Table'),'Sales Table'[Achieved Qty])
Best Regards,
Qiuyun Yu
Hi @Anonymous,
In your scenario, you can create a calculated column like below:
Cumulative Ach Qty = SUMX(RELATEDTABLE('Sales Table'),'Sales Table'[Achieved Qty])
Best Regards,
Qiuyun Yu
@Anonymous
1. Create relationship between two tables using ProductID.
2. Then under Target Table create calculated column using below DAX,
Cumulative Ach Qty = RELATED(SUM(SalesTable[AchievedQty]))
I created a relationship using ProductID and tried your expression. But it gave the following error.
Please refer the below statement I found from web.
"The RELATED function requires that a relationship exists between the current table and
the table with related information. You specify the column that contains the data that
you want, and the function follows an existing many-to-one relationship to fetch the
value from the specified column in the related table."
Therefore, I can get the 'Target' value from 'Target Table' to 'Sales Table' using RELATED function. But, I want to fill 'Cumulative Ach Qty' column in 'Target Table' when 'Sales Table' is updated. Is there any suggestion please?
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 |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |