Forum Discussion
Help
Hello all,
Can anyone please help me to understand whats the mistake I'm making in the following DAX formula:
Many thanks,
Andres Torres
- Anonymous4 years ago
Hi SantiagoTorres ,
Sorry for my late reply.
Try this
Site Visits = COUNTROWS(DISTINCT('4 CoW Productivity'))Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
9 Replies
- FowmySuper User
SantiagoTorres
Can you apply the following modified meaure?Site Visits = SUMX ( VALUES ( '4. CoW Productivity'[Assignee(S)] ), COUNTROWS ( SUMMARIZE ( '4. CoW Productivity', '4. CoW Productivity'[Project Number], '4. CoW Productivity'[Date Created] ) ) )- SantiagoTorresHelper I
Hi, thank you so much for your response,
I already applied this formula:
Site Visits =SUMX(VALUES('4. CoW Productivity'[Assignee(S)]),COUNTROWS(SUMMARIZE('4. CoW Productivity','4. CoW Productivity'[Project Number],'4. CoW Productivity'[Date Created])))And I get these results,What you think??
Many thanks,
Andres Torres
- AnonymousNot applicable
Hi SantiagoTorres ,
Try this measure
Site Visits = CALCULATE(COUNTROWS('4 CoW Productivity'),ALLEXCEPT('4 CoW Productivity','4 CoW Productivity'[Assigness],'4 CoW Productivity'[Date Created],'4 CoW Productivity'[Project Number]))Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- SantiagoTorresHelper I
Hi Stephen, thank you for your response,
Still not getting the values I need,
Project Number Project Address Date Created Assignee(S) B037 B038 20 Miller Street 25/8/21 Steve Gray B021 3 Market Street 25/8/21 Jake Van der Zant B080 331 Orrong Road 25/8/21 Paul O'Callaghan B080 331 Orrong Road 25/8/21 Paul O'Callaghan B035 B036 12-18 Miller Street 25/8/21 Steve Gray B021 3 Market Street 25/8/21 Jake Van der Zant B010 10 Tennyson Street 25/8/21 Paul O'Callaghan B010 10 Tennyson Street 25/8/21 Paul O'Callaghan B035 B036 12-18 Miller Street 25/8/21 Steve Gray B080 331 Orrong Road 23/8/21 Paul O'Callaghan I need to get project numbers by date (#visits), but when the project number is repeated on the same date, I should count it just once. For instance, in this table B080=2 and B010=1, etc.,
Many thanks,
Andres Torres
- AnonymousNot applicable
Hi SantiagoTorres ,
Sorry for my late reply.
Try this
Site Visits = COUNTROWS(DISTINCT('4 CoW Productivity'))Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.