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
Riggan
New Member

Using Calendar table to summarize items by month

Hi. I Have two tables one is just simple calendar table with unique dates, and one is a table with two columns Date and Id. Date is not unique. I want to build a simple barchart using these two tables. As X axis I vant to use dated from Calendar table, and for values I want to use count of Id. The goal to create chart which showing count of Id monthly. I have a sample file

https://limewire.com/d/G9nvD#PAWsLynnP7 

I've connected two tables this way 
Screenshot_1.png

 

And my settings for the chart looks like this

 

Screenshot_2.png

But result shows just one bar. But I need month bars

 

Screenshot_3.png

 

Please point me my mistake

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Make sure that Items[Date] is of type date, not text or datetime. Check in Power Query too that it is a date, as if it is a datetime in power query then it will not link correctly to the date column in your calendar.

View solution in original post

3 REPLIES 3
MasonMA
Resident Rockstar
Resident Rockstar

Hi, @Riggan@johnt75 

Could one of you briefly explain how this was fixed? i'm also interested into this topic and tried your solution @johnt75 on my end. but the Calendar table is still not filtering the Item table. The Count of Item can only be shown when i select 'Show item with no data' under the X-axis and the bar is apprearing on blank date, which means the Calendar table is not filtering Item table. First i thought it was the DAX that generated Calendar table mismatches the range because the date in Items table are all in 2022, but after i adjusted the DAX that generated Calendar table to year 2022, the bar is still not showing correctly. (all Items[Date] and Calendar[Date] are of type date)

MasonMA_0-1748462611023.png

i believe the correct one should look like below. this was done by selecting Date from Item table. but this is not what @Riggan was asking. 

MasonMA_1-1748462711548.png

super weird.. 

thanks

Mason 

The dates in the second image show 2002, not 2022. Try using CALENDARAUTO to generate your calendar table, that will automatically create dates covering the entire period of your data.

johnt75
Super User
Super User

Make sure that Items[Date] is of type date, not text or datetime. Check in Power Query too that it is a date, as if it is a datetime in power query then it will not link correctly to the date column in your calendar.

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.

Top Solution Authors