Forum Discussion
Nigelbloomy
5 years agoFrequent Visitor
Count with second column
I have 3 columns (Investment, Investment Status, and Line Item Detail). I need a DAX measure (I don't have access to the dataset) to see if an investment has more than one status. Investment ...
- 5 years ago
Measure=CALCULATE(DISTINCTCOUNT(Sample[Investment Status]),ALLEXCEPT(Sample,Sample[Investment]))
HotChilli
5 years agoCommunity Champion
I think you're overcomplicating it.
If you create a table visual, drag the Investment on. Create a measure using DISTINCTCOUNT on the Investment Status.
Add that to the visual.
That will give the distinct count of each investment.
If you want "1" or "more than 1" just alter the measure by putting the distinctcount in a variable, then use an 'if' to test the value > 1.
Let me know how you get on.
- Nigelbloomy5 years agoFrequent Visitor
That would work if I didn't need need every field on the visualization. I actually need all 3 columns in the viz plus the other column created from the measure. I should have put that in the original description.