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
CSpina
Helper III
6 years agoThanks D,
Almost worked. The problem now is I have a SUM('fEMPL Ciclos'[P1]) where P1 can be P1, P2, P3... Pn.
I don´t know how to get 'fEMPL Ciclos'[P1] ou how to create P1 based on [Value] from series.
'fEMPL Ciclos'[P & [Value]] - Didn´t work.