Forum Discussion
ryan_mayu
7 years agoSuper User
How to use distinctcount formula when adding a new column
Hi ,
I have a sample data below. I want to count the number of BU for each ID. Could you please let me know how to use DAX to create the new column that I highlighted?
Thanks in advance.
ryan_mayu Please try this as a "New Column"
Count = CALCULATE(DISTINCTCOUNT(Test81Count[BU]),ALLEXCEPT(Test81Count,Test81Count[ID]))
2 Replies
- PattemManoharCommunity Champion
ryan_mayu Please try this as a "New Column"
Count = CALCULATE(DISTINCTCOUNT(Test81Count[BU]),ALLEXCEPT(Test81Count,Test81Count[ID]))
- ryan_mayuSuper User