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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mohamedsabbah
Regular Visitor

Area Chart add 2 filters to a measure to show specific period

Hi 
I'm trying to show only the last 10 months in the area chart, Measure already filtered as shown below I want to add another one to retrieve only the last 10 months.

EVC Cumm. =
var lastdateevc = CALCULATE(LASTDATE(EVCDis[DatesID]),EVCDis[DisUnit]>0)
var m10 = edate(lastdateevc,-10)
return
IF(max(DatesID[DatesID])<lastdateevc ,BLANK(),
CALCULATE(
  SUM(EVCDis[DisUnit]),
  FILTER(
      ALLSELECTED(DatesID[DatesID]),
      DatesID[DatesID]<= MAX(DatesID[DatesID]))))
 
t.PNG
1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @mohamedsabbah 

Thanks for reaching out to us.

>> I want to add another one to retrieve only the last 10 months.

If you try this, will it work?

vxiaotang_0-1660875219777.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.