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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.