Forum Discussion
Check if customer reference contains full data.
- 3 years ago
Topjacket , Sorry my bad, used , inplace of =
if(distinctcount(Table[Month Year])= calculate(distinctcount(Table[Month Year]),filter(Table, Table[Customer]= earlier(Table[Customer]))) , "Yes", "No")
Hi Both
Thanks very much for the replies.
amitchandak I did try this dax but was getting an error message saying there were too many paramaters. Any ideas?
v-yueyunzh-msft I tried this formula and it did not error but also it set all records to "Yes" which is not correct.
I have placed an example table below with the desired output (Full Data Set?). Customer ABC is returning "No" because the entire data set has 4 months of data but customer ABC only has 3 months.
Any advice you can offer would be great.
Thanks again
| CustomerID | MonthAndYear | FullDataSet? |
| 1 | Jan 2020 | Yes |
| 1 | Feb 2020 | Yes |
| 1 | Mar 2020 | Yes |
| 1 | Apr 2020 | Yes |
| ABC | Jan 2020 | No |
| ABC | Feb 2020 | No |
| ABC | Mar 2020 | No |
| ABC123 | Jan 2020 | Yes |
| ABC123 | Feb 2020 | Yes |
| ABC123 | Mar 2020 | Yes |
| ABC123 | Apr 2020 | Yes |
Topjacket , Sorry my bad, used , inplace of =
if(distinctcount(Table[Month Year])= calculate(distinctcount(Table[Month Year]),filter(Table, Table[Customer]= earlier(Table[Customer]))) , "Yes", "No")
- Topjacket3 years ago
Helper I
Thanks very much amitchandak
I thought I had tried different combos but I obviously missed this one. All working great now.
Thanks again.