Forum Discussion
Anonymous
2 years agoNot applicable
SelectedValues function not displaying values for all userid
Hello, I am using the below DAX calculation as a measure in Table visual. PreviousMonth = Var YT = CALCULATE(SELECTEDVALUE(FACT_ABCD_VW[USER_ID]),FILTER(ALL(DIM_DATE_VW),DIM_DATE_VW[YEAR]=SE...
- Anonymous2 years ago
Hi Anonymous ,
I created some data:
Are you referring to the current year and current month in table DIM_DATE_VW, showing the collection corresponding to table FACT_ABCD_VW[USER_ID]?
Here are the steps you can follow:
1. Create measure.
Measure = CONCATENATEX( FILTER(ALL(FACT_ABCD_VW), YEAR('FACT_ABCD_VW'[Date])=YEAR(MAX('DIM_DATE_VW'[Date]))&& MONTH('FACT_ABCD_VW'[Date])<=MONTH(MAX('DIM_DATE_VW'[Date]))),'FACT_ABCD_VW'[USER_ID],"-")2. Result:
If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
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
Ahmedx
2 years agoSuper User
I think it's better for you to use TOTALYTD
- Anonymous2 years agoNot applicable
Hi, TOTALYTD is not displaying all the records in details visual, hence I had to do YTD calculation manually.