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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
c1c
Frequent Visitor

Display the count by month in a graph

Hi all

I want to display the count by month in a graph

 

Currently, I have this data:

c1c_1-1713861098913.png

 

I want to display like this:

x axis : month

y axis : count by limit date

            count by Acceptance date

c1c_2-1713862740826.png

 

 

I know the methods to use measure

I would like to know other one.

 

Any ideas on how to do it?

Thank you so much.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @c1c 

Based on your description, you can refer to thw follwing solutions.

Create a calendar table.(there is no relationship between tables)

 

Calendar = CALENDAR(DATE(2023,1,1),DATE(2024,12,31))

 

Solution 1.Use measure:

Create the following measures.

 

Count_acceptdate =
CALCULATE (
    COUNTA ( 'Table'[Job] ),
    EOMONTH ( 'Table'[Acceptance Date], 0 )
        = EOMONTH ( MAX ( 'Calendar'[Date] ), 0 )
)
Count_limitdate =
CALCULATE (
    COUNTA ( 'Table'[Job] ),
    EOMONTH ( 'Table'[limit Date], 0 ) = EOMONTH ( MAX ( 'Calendar'[Date] ), 0 )
)

 

Then put the date column of the calendar table to x-axis, put the measures to y-axis

Output

vxinruzhumsft_0-1713927304219.png

Solution 2. In power query, unpivot your table to the following format.

vxinruzhumsft_1-1713927361374.png

Then create a relationship between date table and the data table

vxinruzhumsft_2-1713927543153.png

Put the date column of the calendar table to x-axis, then put the job field of the data table to y-axis, and set it as 'count of job', and put the attribute value to the legend.

vxinruzhumsft_3-1713927666611.png

Output

vxinruzhumsft_4-1713927679998.png

Best Regards!

Yolo Zhu

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

 

 

 

 

 

 

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @c1c 

Based on your description, you can refer to thw follwing solutions.

Create a calendar table.(there is no relationship between tables)

 

Calendar = CALENDAR(DATE(2023,1,1),DATE(2024,12,31))

 

Solution 1.Use measure:

Create the following measures.

 

Count_acceptdate =
CALCULATE (
    COUNTA ( 'Table'[Job] ),
    EOMONTH ( 'Table'[Acceptance Date], 0 )
        = EOMONTH ( MAX ( 'Calendar'[Date] ), 0 )
)
Count_limitdate =
CALCULATE (
    COUNTA ( 'Table'[Job] ),
    EOMONTH ( 'Table'[limit Date], 0 ) = EOMONTH ( MAX ( 'Calendar'[Date] ), 0 )
)

 

Then put the date column of the calendar table to x-axis, put the measures to y-axis

Output

vxinruzhumsft_0-1713927304219.png

Solution 2. In power query, unpivot your table to the following format.

vxinruzhumsft_1-1713927361374.png

Then create a relationship between date table and the data table

vxinruzhumsft_2-1713927543153.png

Put the date column of the calendar table to x-axis, then put the job field of the data table to y-axis, and set it as 'count of job', and put the attribute value to the legend.

vxinruzhumsft_3-1713927666611.png

Output

vxinruzhumsft_4-1713927679998.png

Best Regards!

Yolo Zhu

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

 

 

 

 

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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