Hi!
I need your help, I have spent a long time in this project and I haven't found the solution still.
I need to show all the times is searched a terms in the web. Por example, if the user search the name "Jim", in the data base is saved:
Name Date
Jim '01/01/2016'
I would like count how count often is searched each name. If I have in my Datebase:
Name Date
Jim '01/01/2016'
Tom '12/23/2002'
Jim '06/19/2006'
Mary '03/14/2004'
I can return
Name Count
Jim 2
Tom 1
Mary 1
With this query:
SELECT name, COUNT(*) FROM myTable GROUP BY name ORDER BY COUNT(*)
BUT I would like keep the dates because I need to show the quantity of search in some dates (like the user want to select). The dates is no important for me show it in my grid table in Power BI Desktop; the dates is important for use my Slicer.
Image may be NSFW.
Clik here to view.
Maybe it is no the correct title for my problem... I'm sorry for my English, it isn't my native laguage.
I'll appreciate your help.
Thanks in advance!