Forum Discussion
Multiple SELECTEDVALUES conflicting for dynamic MoM Change
- 6 years ago
Hi Anonymous ,
SELECTEDVALUES doesn’t support multiple values. So you can use VAUES function.
The lead count measure as following,
New lead count = var monthtouse = VALUES(AlternateDateDim1[MonthAbbrvAndYearName]) var maxdate = calculate(max(AlternateDateDim1[DateSK]),AlternateDateDim1[MonthAbbrvAndYearName] in monthtouse) var mindate = calculate(min(AlternateDateDim1[DateSK]),AlternateDateDim1[MonthAbbrvAndYearName] in monthtouse) var leadcount = calculate(DISTINCTCOUNT(Data[Identifier]),Data[CreateDtID] >= mindate,Data[CreateDtID] <= maxdate,USERELATIONSHIP(AlternateDateDim1[DateSK],Data[CreateDtID])) return leadcountThe reason why MoM displays blank is the interactions. Please check the interactions between slicers and card visuals.
The following is the result of our change interaction, is it what you want?
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi,
In that case, you will have to create inactive relationships between your base dataset and other calendar tables and then use the USERELATIONSHIP() function to compare months of your choice.
Ashish_Mathur I had tried both active and inactive relationships with those tables. I just tried including USERELATIONSHIP() and that also doesn't seem to be getting things to work as I would like them to. Either something is just eluding me or that also is not a solution to the problem. I've uploaded a trimmed down version of my .pbix file that should include the necessary tables, fields, and measures in case that is helpful.
https://www.dropbox.com/s/jn0wfd1qokk5mfu/CSC%20Dash2.pbix?dl=0
- Ashish_Mathur6 years agoSuper User
Hi,
In the image, you can see that the cards where the filter criteria is August 2020 are working fine. Create the AlternateDateDim tables the same as the DateDim table and create the same relationship that i have. Then write three measures (the way i have create the "Measure" measure).
Hope this helps.
You may download the PBI file from here.
Hope this helps.