Forum Discussion
LuisLOCapelari
Helper I
3 years agoSummarize filtering by date
Hey guys. I'm Brazilian and I need to do a dax to calculate the amount of ID_GERADOC for each ID_LOGIN in the FATO_GERADOC table, in a given period. This period will be selected in a slicer from the ...
Anonymous
3 years agoNot applicable
Hi LuisLOCapelari ,
You can try using the following dax:
Measure =
var _select=SELECTEDVALUE('DIM_DATA'[Data])
return
COUNTX(
FILTER(ALL(FATO_GERADOC),
'FATO_GERADOC'[ID_LOGIN]=MAX('FATO_GERADOC'[ID_LOGIN])&&'FATO_GERADOC'[DATA_REGISTRO]<=_select),'FATO_GERADOC'[ID_GERADOC])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LuisLOCapelari
Helper I
3 years agoHello Anonymous . This doesn't work. Because there are several date filters, there is no single value to get from SELECTEDVALUES.
The idea is to be able to filter according to year, quarter and month. And dynamically, for the selected period, generate a table calculating the number of lists generated by each teacher. Then, discover the unique values for the number of lists, and for each number of lists, find out how many teachers fit into this group.
I will attach images illustrating it.