Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
DA_FACT_DMS is a table name. And I have a column in this table named "Well_Name". How do I write a DAX to calculate count distinct of Well_Name?
Note:- I'm creating this DAX in another table. That's why I'm doing it like this.
Solved! Go to Solution.
Hi @Anonymous ,
If the two tables are related, try this:
Column =
CALCULATE ( DISTINCTCOUNT ( DA_FACT_DMS[Well_Name] ) )
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@Icey what if I want to display all the well name? I don't want to count it. I've tried RELATED(DA_FACT_DMS[Well_Name]) but its not working
Its the same case. I want to put the well_name column in another table. Both table are already connected.
Hi @Anonymous ,
If the two tables are related, try this:
Column =
CALCULATE ( DISTINCTCOUNT ( DA_FACT_DMS[Well_Name] ) )
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@Anonymous , what is other table and how they are related
distinctcount(DA_FACT_DMS[Well_Name])
or
countx(values(DA_FACT_DMS[Well_Name]),DA_FACT_DMS[Well_Name])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.