Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello so i have a table containing date time and Status Status is :DNC(Do not call) , Sale(Sale made)... So i want to create a graph where i only need the count of DNC on a graph over time not the date but time as in 7:09, 13:39,20:08....
Solved! Go to Solution.
Hi @Anonymous ,
You may try this solution.
Here are the sample data.
1 Create a Calculated column
Time = FORMAT('Table'[DateTime],"hh:mm")
2 Create a measure to count DNC
Count DNC = CALCULATE(COUNT('Table'[ Status]),FILTER('Table','Table'[ Status]="DNC(Do not call)"))
The result looks like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
@Anonymous You can get just the time value in a column like this:
Time = TIME(HOUR([DateTime]), MINUTE([DateTime], SECOND([DateTime]))
@Greg_Deckler what about the distinct status? i want the count of how many DNC only
@Anonymous You can use DISTINCTCOUNT or COUNTROWS(DISTINCT('Table[Column]))
Hi @Anonymous ,
You may try this solution.
Here are the sample data.
1 Create a Calculated column
Time = FORMAT('Table'[DateTime],"hh:mm")
2 Create a measure to count DNC
Count DNC = CALCULATE(COUNT('Table'[ Status]),FILTER('Table','Table'[ Status]="DNC(Do not call)"))
The result looks like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
@Anonymous , Create two separate column in table
Date = Datevalue([Datetime])
Time = timevalue([datetime])
And create a measure and use it with time
measure = countrows(filter(Table,Table[DND] = "Y"))
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
10 |
User | Count |
---|---|
19 | |
16 | |
14 | |
11 | |
9 |