Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Suppose I have a dataset as follows:
Car_ID Owner_Name Car_Owner_State Unique_State_Count
1 Adam FL 2
1 Bob FL 2
1 Carrie GA 2
2 Alex NC 1
2 Bill NC 1
3 Aron IL 1
What DAX expression would produce the column "Unique_State_Count" above?
Thank you!
Solved! Go to Solution.
Hi @_Alex_
Created calculated column
Unique_State_Count1 = CALCULATE(DISTINCTCOUNT(Table1[ Car_Owner_State]),ALLEXCEPT(Table1,Table1[Car_ID]))
Or measure
Measure = CALCULATE(DISTINCTCOUNT(Table1[ Car_Owner_State]),ALLEXCEPT(Table1,Table1[Car_ID]))
Best Regards
maggie
Hi @_Alex_
Created calculated column
Unique_State_Count1 = CALCULATE(DISTINCTCOUNT(Table1[ Car_Owner_State]),ALLEXCEPT(Table1,Table1[Car_ID]))
Or measure
Measure = CALCULATE(DISTINCTCOUNT(Table1[ Car_Owner_State]),ALLEXCEPT(Table1,Table1[Car_ID]))
Best Regards
maggie
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!