Forum Discussion
Need help on Dax
- 2 years ago
Simple_one You can create a calculated column:
CHECK_DATE = IF('Offtrack Reenrollment'[OFFTRACK_YM] = 'Offtrack Reenrollment'[YEAR_MONTH], 1, 0)then put this column in filter pane of the matrix visual and select "equals 1":it will show you only the desidered dates:
BBF
Simple_one Hi! I'm on your pbix file, why is that number wrong? If I put values in a table, the total is correct. Which is the calculation that should do the measure? and the expected output for row?
BBF
Hi BeaBF ,
The # of Reenrol of 03-2023 is : 156 ( with my dax for calculate # of Reenrol ).
My dax for calculating of # of Reenrol is not correct. Can you help me for fixing this ?
- BeaBF2 years ago
Super User
Simple_one ok, but which is the logic to obtain 156 for 03-2023?
- Simple_one2 years ago
Helper I
Hi BeaBF ,
I count Distinct number of USERINFORMATION_KEY in data for OFFTRACK_YM of 03-2023 = 156. Because student can reenrolment many time but we count this student one time
- BeaBF2 years ago
Super User
Simple_one Try with:
# of Reenrol = CALCULATE(SUMX(DISTINCT(SELECTCOLUMNS('Offtrack Reenrollment',"ID",'Offtrack Reenrollment'[USERINFORMATION_KEY],"isReenrollment",'Offtrack Reenrollment'[ISREENROLL])),[isReenrollment]), 'Offtrack Reenrollment'[OFFTRACK_YM] in VALUES('Offtrack Reenrollment'[YEAR_MONTH]))if it's ok, please accept my answer as solution.
BBF