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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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