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
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
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.