Forum Discussion
phaum1967
8 years agoResolver I
Distinctcount linked to another column
Hi PowerBI community I have a table like this: column nme : Speciality, Date of operation,... I want to have a distinctcount on date in order to count all different dates for each spec...
- 8 years ago
Hi,
You should drag speciality to the X axis of the Graph and then drag the Distinctcount measure to the value section. Anyways, if you want to write a formula, write this measure:
=CALCULATE(DISTINCTCOUNT(Data[Date of operation]),Data[Speciality]="XXX")
Replace XXX with the specific speciality.
- 8 years ago
Hi phaum1967
“have a distinctcount on date in order to count all different dates for each speciality”
To achieve requirement above, create a column
Column = CALCULATE(DISTINCTCOUNT(Sheet1[Date of operation]),ALLEXCEPT(Sheet1,Sheet1[Speciality]))
Best Regards
Maggie
v-juanli-msft
8 years agoCommunity Support
Hi phaum1967
“have a distinctcount on date in order to count all different dates for each speciality”
To achieve requirement above, create a column
Column = CALCULATE(DISTINCTCOUNT(Sheet1[Date of operation]),ALLEXCEPT(Sheet1,Sheet1[Speciality]))
Best Regards
Maggie