Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi Everyone,
I am currently working on a dashboard to show average staff productivity for a given interval of time. To estabilish my datapoint for staff availability for given day (ie count of workdays) I referred to call interaction log date.
however, the challenge is that a staff may log multiple interactions for a day so my code end up returning count of interactions rather than count of workdays .
I will appreciate a solution to this
Solved! Go to Solution.
Difficult to say withour data-point here but you might do something like
If(DISTINCTCOUNT(DATE)>1,1,0)
NOTE: As you said there are multiple transaction in a day hence distinct count in a day will be greater than 1 if you have DateTime , if the granularity is at Day level then you can expect one with DISTINCTCOUNT anyways
/Another option is to trim datetime to day and then take DISTINCTCOUNT
This way you consider multiple count as 1 only
Regards,
Ritesh
Hi Ribisht,
This actually worked, I trimed the date.
thanks a million
@Ucboy4 - Use Distinct count and see if that works.
Did I answer your question? Mark my post as a solution! If not, please feel free to ask me.
Also, I would ❤ Kudos if my solution helped. It is a token of appreciation!
Thank you very much !
Difficult to say withour data-point here but you might do something like
If(DISTINCTCOUNT(DATE)>1,1,0)
NOTE: As you said there are multiple transaction in a day hence distinct count in a day will be greater than 1 if you have DateTime , if the granularity is at Day level then you can expect one with DISTINCTCOUNT anyways
/Another option is to trim datetime to day and then take DISTINCTCOUNT
This way you consider multiple count as 1 only
Regards,
Ritesh
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
30 | |
24 | |
23 | |
22 | |
21 |