Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm stuck trying to get two lines working right on a chart.
One dataset has:
THING | WEEKCREATED |
A | 1 |
B | 1 |
C | 2 |
The other dataset has target goals:
WEEKNUM | TARGET |
1 | 2 |
2 | 3 |
In this dataset, I have Summarize By in the model set to "None"
I'm trying to have a line chart where it plots one line with the count of things in each week, and another line that shows the goal. I start with an Axis of WEEKCREATED and a Value of "Count of THING". I can't for the life of me figure out how to put in the straight value of TARGET.
Any help is appriciated! Thanks!
Solved! Go to Solution.
Hi @BMac-Coop
You can best create a date table with the week numbers. Then set up relationships between DateT and both your actuals and target tables. You can then create the line chart with DateT[Week] in the x axis and the count of "things" in values. It's advisable to create explicit measures for the counts rather than using implicit ones.
See it all at work in the attached file.
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @BMac-Coop
You can best create a date table with the week numbers. Then set up relationships between DateT and both your actuals and target tables. You can then create the line chart with DateT[Week] in the x axis and the count of "things" in values. It's advisable to create explicit measures for the counts rather than using implicit ones.
See it all at work in the attached file.
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
It's not loading as I'd expect in the file you provided. The line for TARGET is straight at a value of 1. The goal is the TARGET number changes week over week. It's showing the number of TARGET rows for the week I think, not the value of the TARGET row.
I think I figured it out. I had to change the TARGET value datapoint from "Count of TARGET" to Sum of TARGET (which just displays now as "TARGET"). With that change it looks as I'd expect. Thanks! Off to the next thing to figure out!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
38 | |
28 | |
26 |
User | Count |
---|---|
99 | |
88 | |
62 | |
42 | |
39 |