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
srajapinn
Frequent Visitor

I am trying to filter data from the last 6 months only in a paginated report please help

Hello all,

 

Seeking urgent help with the following issue.

I am building a paginated report where I want to filter data from the last 6 months using a field from the dataset.

 

The method I am using is: to create a field within the Dataset properties which assigns 2 labels to help differentiate data from the last 6 months and data that isn't. Here is my expression:

srajapinn_0-1662644588628.png

Then I will create a filter within the dataset properties which will only display values that contain 'include'.

srajapinn_1-1662644772964.png

 

I will then save the query, create a table containing values from that dataset, and hit 'Run' and here is where I start running into issues.

srajapinn_2-1662644902890.png

I am open to different methods of achieving the same goal, however with my experience with normal power BI reports, this seemed like the obvious option.

Thanks
Sajan

1 ACCEPTED SOLUTION
srajapinn
Frequent Visitor

In the end this was the solution, just switching the position of the variables within the 'DateAdd' function.

srajapinn_1-1665530307863.png

 

View solution in original post

2 REPLIES 2
srajapinn
Frequent Visitor

In the end this was the solution, just switching the position of the variables within the 'DateAdd' function.

srajapinn_1-1665530307863.png

 

vanessafvg
Super User
Super User

To me it looks like you have a datatype issue.  What is your data type of the date you are passing it.  It will need to be a datetime / date data type or you cannot use a date function.  If it is in an integer you need to pass it a date. 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.