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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

how to filter data on last 3 monts

Hello experts,

 

I need some help with some simple things(for some people).

I managed to make a graph with series for 4 years by month. I would like to show in graph only data last 3 months

For example to see now only months March, Feb and Ian. But if I run report in August  to see August July and June for all 4 series.

 

Thank you

 

demo.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Actually I realized that is quite simple

:

IsInFilter = IF(SalesQry[Posting_Date].[MonthNo]=MONTH(TODAY()) || SalesQry[Posting_Date].[MonthNo]=MONTH(edate(TODAY(),-1)) || SalesQry[Posting_Date].[MonthNo]=MONTH(edate(TODAY(),-2)) ,TRUE(),FALSE())

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Actually I realized that is quite simple

:

IsInFilter = IF(SalesQry[Posting_Date].[MonthNo]=MONTH(TODAY()) || SalesQry[Posting_Date].[MonthNo]=MONTH(edate(TODAY(),-1)) || SalesQry[Posting_Date].[MonthNo]=MONTH(edate(TODAY(),-2)) ,TRUE(),FALSE())

Hi @Anonymous,

 

That's great! Please mark your answer as solution.

 

Best Regards,

Dale

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.