Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I don't have much knowledge of DAX, I made a query with CROSSJOIN, except that as there are duplicate values in the output count, I would like to have unique values. Here is my query:
Solved! Go to Solution.
Hi,
Have a look at this Example
Think you were over complicating it with cross join etc rather than using the exisitng relationships.
Using your data...
Customers With An Appointment =
DISTINCTCOUNT ( Appointment[CustomerId] )
Thank you very much for your held. Indeed DISTINCTCOUNT solve the issue.
As well I found that I could have juste add a SUMMARIZE in the COUNTROWS :
RETURN COUNTROWS(SUMMARIZE(NumberAccountsWithAppointements,[accountid])).
Thanks very much for your help
@Anonymous provide sample data/sample pbix
@amitchandak Here is the full request in DAX :
@Anonymous ,If this does not help
Can you share sample data and sample output in table format?
Hi,
Have a look at this Example
Think you were over complicating it with cross join etc rather than using the exisitng relationships.
Using your data...
Customers With An Appointment =
DISTINCTCOUNT ( Appointment[CustomerId] )
Thank you very much for your held. Indeed DISTINCTCOUNT solve the issue.
As well I found that I could have juste add a SUMMARIZE in the COUNTROWS :
RETURN COUNTROWS(SUMMARIZE(NumberAccountsWithAppointements,[accountid])).
Thanks very much for your help
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |