Forum Discussion
CSpina
Helper III
6 years agoLoop fopr DAX
Hi boys and girls, I need to repeat a CALCULATE, but changing only 'fEMPL AUT Ciclos'[P1] for 'fEMPL AUT Ciclos'[P2]. There are 150 different "P". Any ideas?
Anonymous
6 years agoNot applicable
https://community.powerbi.com/t5/Community-Blog/For-and-While-Loops-in-DAX/ba-p/636314
here is a link to a solution
parry2k
Super User
6 years agoCSpina you should be unpivot your table for better design and then you don't need to do this dance with DAX.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos 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.⚡