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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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