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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
YBZ
Helper III
Helper III

Month filter

Hi all,

 

I created a bar chart that shows data of all previous months when I filter on one specific month. This is properly working with an unconnected date table. 

 

YBZ_1-1648215691120.png

 

 

The issue is when I would like to add a matrix and I want to see the actuals of my selected month and ytd actuals.

It doesn't show the correct amount as there is no connection with my unfiltered date table and the data table. Now the question is, how I connect the data so that both my bar chart and matrix are working?

 

Desired result is when I filter on for example March :

Bar chart : should show actuals of January, February, March
Matrix : should show actuals of March and YTD (Jan,Feb,March)

 

My data connection is as followed :

date table (unconnected)

date table 2 relationship with data table

 

Thanks

Regards

 

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @YBZ 

Could you please tell me whether your problem has been solved?

If yes, you could accept the helpful answer as solution to close this thread.

Other community members will easily find the solution when they get the same issue.

 

Best Regards,
Community Support Team _ Eason

 

 

amitchandak
Super User
Super User

@YBZ , Try like

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -3) +1
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors