Forum Discussion
Reuse calculated table variable within DAX formula
- 5 years ago
dpc_development I think you can take advantage of Calculation groups and reuse the code by using selectedmeasure(). Check if this video helps. Using calculation groups to selectively replace measures in DAX expressions - YouTube
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
dpc_development I think you can take advantage of Calculation groups and reuse the code by using selectedmeasure(). Check if this video helps. Using calculation groups to selectively replace measures in DAX expressions - YouTube
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- dpc_development5 years ago
Helper III
parry2k Thanks for the input. I know how to use calculationgroups, but do you know for a fact that using calculationgroups will reuse the initial part of the DAX formula? This question is not about reducing code size, rather about re-using already calculated table.