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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
MKJ
New Member

Date filter (slicer) overruled by column dates in measurement

Hi,

 

I have a made this measurement to calculate my hour rate accumulated from the first possible date to end of last month: 

MKJ_1-1667896435657.png

 

To manage the period I want to look at I have en overall date filter on the report side:

MKJ_2-1667896597602.png

 

So when the filter is set to 18-06-2019 to 30-09-2022 I want to se the rate calculated from 18-06-2019 to 31-08-2022.

 

The problem is that my measurement don't follow the date filter on my report side, but instead takes all the dates in the column table "Prod$Job Ledger Entry'[Posting Date]".

 

My report date filter is also based on "Prod$Job Ledger Entry'[Posting Date]".

 

Can somebody help?

 

 

 

1 ACCEPTED SOLUTION
MKJ
New Member

Hi,

 

I think I find a solution. I created a Calender table and related it to my dates in the primary data table. After that i modified my formular to this:

 

MKJ_0-1668079295565.png

 

View solution in original post

2 REPLIES 2
MKJ
New Member

Hi,

 

I think I find a solution. I created a Calender table and related it to my dates in the primary data table. After that i modified my formular to this:

 

MKJ_0-1668079295565.png

 

v-jianboli-msft
Community Support
Community Support

Hi @MKJ ,

 

Please check if it is caused by the DATEADD(). This function returns a table that contains a column of dates, shifted either forward or backward in time by the specified number of intervals from the dates in the current context. 

If this doesn't work, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors