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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
spencer_g
Helper I
Helper I

Filter data by a specified date range

Hello Everyone, 

 

I have 3 years worth of data from Google Analytics. During this time various employers have been "spotlighted" on our website for a month at a time. I want to create a separate measure for each employer and the duration of time in which they had a spotlight on the website, however, I'm not sure how to write the formula to filter by date. For instance, Company X was on the site from March 1, 2016 - March 31, 2016 and received 30 clicks. How can I write a forumla to get that information? 

 

Thanks in advance. 

 

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi Spencer,

 

According to your description, you need to get the colick on the website on a specifed data range, right?

 

If that is the case, you can use a timeline visual in your report. The Timeline slicer is a graphical date range selector used as a filtering component in Power BI. This makes filtering data by date dimension easy and fun. The visual is available on the link below.
https://app.powerbi.com/visuals/

Capture.PNG

 

Regards,

Charlie Liao

Phil_Seamark
Microsoft Employee
Microsoft Employee

Perhaps create a table with a column for Employers and a column for each day they were Spotlighted on.

 

Then join the new table to your existing FACT tables and create some slicers on it.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.