The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi !
I'm creating a calculated column. For each calculated row of the column, I need the value of another column of the table, on the same row.
I called this value _weight and I calculated like this :
Solved! Go to Solution.
Hi @Anonymous ,
You can just use
var _weight = ShipDetails[NET_WEIGHT_LBS]
You can have a look at this video to understand more on Context Transition.
https://www.youtube.com/watch?v=03E0f-RyRn4
Regards,
Harsh Nathani
Hi @Anonymous ,
You have to use an aggregation function in your DAX like SUM, AVERAGE, etc.
Something like this:
VAR _weight = CALCULATE(SUM(ShipDetails[NET_WEIGHT_LBS]))
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Hi @Anonymous ,
You can just use
var _weight = ShipDetails[NET_WEIGHT_LBS]
You can have a look at this video to understand more on Context Transition.
https://www.youtube.com/watch?v=03E0f-RyRn4
Regards,
Harsh Nathani