Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
How can I get unique value per ID from the below example? Currently it is giving the count of meas_value.
i tried to change it to Calculate(DISTINCTcount(Query1[value]), in the below formulae and it did not work
Total Count = Calculate(count(Query1[value]),
Filter(ALL(Query1[Admission_Hours]),Query1[Admission_Hours] >72))
ID value
101 0
101 0
101 0
101 0
101 0
101 0
101 0
Currently the output is (since its counting 7 times)
ID Value
101 7
WANT:
ID Value
101 0
Solved! Go to Solution.
Please check if the following DAX returns your expected result.
Total Count = Calculate(max(Query1[value]),Filter(ALL(Query1[Admission_Hours]),Query1[Admission_Hours] >72))
Regards,
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsLike THIS?
Total Count = Calculate(DISTINCTcount(Query1[ID]),
Filter(ALL(Query1[Admission_Hours]),Query1[Admission_Hours] >72))
But I ALSO WANT TO SHOW THE UNIQUE "VALUES" AN id CONTAINS
Currently the output is (since its counting 7 times)
ID totalcount
101 7
WANT:
ID totalcount
101 0 (DISTINCT VALUE FOR EACH 'ID')
Please check if the following DAX returns your expected result.
Total Count = Calculate(max(Query1[value]),Filter(ALL(Query1[Admission_Hours]),Query1[Admission_Hours] >72))
Regards,
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
122 | |
101 | |
71 | |
61 |