March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello all,
Can anyone please help me to understand whats the mistake I'm making in the following DAX formula:
Many thanks,
Andres Torres
Solved! Go to Solution.
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.
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.
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
Hi,
In the Table that you have shared in your post, could you kinldy show the expected result.
Hi Ashish, thanks for your response,
I cannot load all the data here (I couldn't find a way to load attachments), but please see below the logic of my calculation with a portion of the data I have.
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 the date the site has been visited (#visits), but when the project number is repeated on the same date, I should count it just once. For instance, in this little table, we should get as a result that B080=2 and B010=1, etc.,
Am I clear with that information?, kind of hard to show more details, sorry.
Thanks,
Andres Torres
Hi,
Has Stephen Tao alsready answered your question? Do you still need help?
Hello. thanks for your response,
It's working for me with the following modification:
Can you see I got the same values now, but in the total, I got 261 instead of 253, which is correct.
Many thanks,
ASTM
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.
@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]
)
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi, thank you so much for your response,
I already applied this formula:
What you think??
Many thanks,
Andres Torres
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |