Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 speciality.
Of course If I do a distinctcount(date) it does not work as it will count all dates but without taking account my need of have number of date by specilaity.
I tried calculcate(distinctount(date); speciality) but it does nothing.
Any help is welcome...
Solved! Go to Solution.
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.
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
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
Hi,
Write the normal distinctcount function and in the filter/slicer, select any speciality.
Thanks but I want to present datas in a graph that show monthly activities per speciality. So slicer does not help.
An other idea?
thanks
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |