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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
HenryJS
Post Prodigy
Post Prodigy

Line Graph - Count vs Weeks

Hi all,

 

How can I do a line graph with two lines

 

One line for 'Contract' job type and one line for 'Permanent' job type.

 

Against an axis of weeks of the 'Created Date'

 

 

Annotation 2020-02-07 1414181.png

 

Annotation 2020-02-07 141418.png

6 REPLIES 6
Anonymous
Not applicable

Hi Henry,

has your Datamodel one or more tables?

If the [JobType] and the [CreatedDate] are in the same Table, insert a new Item as Week unsing

Week = WEEKNUM([CreateDate];2) -> 2 for week starts on Monday.

Then i would also insert a Dax Count four your entries, which become the Datapart for your Line Graph.

 

If the data are in seperate tables, do the same with the Week, and connect the Data via Relations.

 

Cheers

Lon

Hi @Anonymous 

 

Thanks

 

How do I get the two different job types to show up as two different lines?

 

Annotation 2020-02-07 143641.png

Anonymous
Not applicable

Use the Drag the JobTyp to the Legend field

Thanks Lon

 

Last question - I want the x axis to have more intervals marked?

 

Cheers

Hi,

 

Please try to change X-axis type to 'Continuous':

21.jpg

 

Best Regards,

Giotto Zhi

Anonymous
Not applicable

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.