cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Filter by today's date

Hi, I have a table with sales data for last year and this year. I have visuals that show these data, and I also want to add a visual with today's sales figures.

What is the best way to only filter records with Today's date?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Filter by today's date

Hi @Chewbacca,

 

Add a column in your date table by using the DAX expression below.
Today = IF(Table1[Date]=TODAY(),1,0)

 

Then in your visual which you only show today's sales, add a filter like below:

Capture.PNG

 

Regards,

Charlie Liao

View solution in original post

1 REPLY 1
Highlighted
Microsoft
Microsoft

Re: Filter by today's date

Hi @Chewbacca,

 

Add a column in your date table by using the DAX expression below.
Today = IF(Table1[Date]=TODAY(),1,0)

 

Then in your visual which you only show today's sales, add a filter like below:

Capture.PNG

 

Regards,

Charlie Liao

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors