Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tradingpost
Frequent Visitor

How to filter by hour, despite having full time info?

I'm sorry for asking such a basic question. 

 

I'm ABSOLUTELY new to this program, I was just sucked doing into it yesterday. I kind of understand it's like an easier version of Excel but now I want to know one thing. 

 

In my datasets, I'm trying to filter data by the day. The issue is that, the data is recorded by time, right down to the absolute second. So when I filter it, it's filtering it by seconds. When it does that, it's basically telling me, there's 1 item for every second.

 

I want to ignore the Seconds and Hours part and just focus on the date. Is that possible? Tomorrow I will start watching the full courses & webinars but can someone please help me on this one for today T_T 

1 ACCEPTED SOLUTION

Hi @Tradingpost

 

You may try to add column in Query Editor as below:

1.png

By the way, as Ashish_Mathur said. You also need to set the column data type to get the date column. 

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
Ashish_Mathur
Super User
Super User

Hi,

 

Write this calculated column formula to extract date from the date/time stamp

 

=INT(Data[Date_time])

 

Change the Table and column name to your actual ones.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I'm sorry. I tried doing that, but I don't think I fully understand what to do. I just want to filter it just by the date. 

 

Below is a screenshot.

 

As you can see, it's filtering it by date which is great, but it's also filtering it by time and seconds. How can I make powerBI just "ignore" the time? 

 

 

 

PowerBI Problem 2.JPG

 

PowerBI Problem.JPG

Hi,

 

In the thin blank panel on the left hand side, click on the secons icon (Data).  Select the appropriate Table and under modelling click on New Column.  Now write the formula that i shared with you.  In the visual, drag this new column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I'm really sorry. I don't think it seems to be working. 😞 

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I pressed share on PowerBI Cloud and this is the report link. I'm assuming this the link you need?

 

https://app.powerbi.com/groups/me/reports/b70e20b1-dc79-46ae-8906-5b932221f47c?ctid=6eae18b9-e630-47...

No, that is not the link.  I need the link from where i can download the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Can I email you the file directly? 

I greatly appreciate the help btw. If not, I'll try to upload it somewhere?

 

Edit : I managed to do the formula you gave me, except the date_time one. Now it looks like this.

 

Now wat.JPG

Hi @Tradingpost

 

You may try to add column in Query Editor as below:

1.png

By the way, as Ashish_Mathur said. You also need to set the column data type to get the date column. 

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Remove the [Date_time]


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.