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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.