Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello, I want to calculate Disticnct count of Column1 based on Column2. I added a Measure Column
DISTINCTENV = DISTINCTCOUNT(Sheet1[Environment]) which gives below output.
Original Table:
Date | Exterprise | Environment | Application |
Mar-17 | ANBC | DV1 | APP1 |
Mar-17 | ANBC | DV1 | APP2 |
Mar-17 | ANBC | DV2 | APP3 |
Mar-17 | ANBC | DV2 | APP4 |
Mar-17 | ANBC | DV2 | APP5 |
Mar-17 | ANBC | DV2 | APP6 |
Mar-17 | ANBC | DV3 | APP7 |
Mar-17 | CNBC | DV1 | APP8 |
Mar-17 | CNBC | DV2 | APP9 |
Mar-17 | CNBC | DV3 | APP10 |
Table after adding MEasure. But Total is coming 3. It should be 6. How can Count Sum of Measure column?
Enterprise | Measure |
ANBC | 3 |
CNBC | 3 |
Total | 3 |
Solved! Go to Solution.
Hi, try with this:
DCMeasure = SUMX(VALUES(Table1[Exterprise]);DISTINCTCOUNT(Table1[Environment]))
Hi, try with this:
DCMeasure = SUMX(VALUES(Table1[Exterprise]);DISTINCTCOUNT(Table1[Environment]))
Thanks this helped.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
84 | |
84 | |
73 | |
49 |
User | Count |
---|---|
143 | |
131 | |
110 | |
64 | |
55 |