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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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, @Anonymous 

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

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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.