Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Guys
I am strugeling to find a solution for my line charts. I have a sales data (my fact table) which includes sales data and the order date granularity is week. There are a lots of accounts that only order 5 times a year as this is WHS.
Then I have a date fact table which granularity is also on week ( it is not really data table becasue i can not use time functions as I dont have day granularity). I linked these two tables by week nr/year and created both direction relationship.
When I want to display data in line chart and put Week nr (without year) on the axis and sale in the value i am facing this issue:
line chart xaxis categorical type
line chart xaxis categorical type
Due the fact that some customers/accounts only place 5-10 orders per year they will have only few records and in the line chart the line will consist of points and short lines rather than one continuous line.
When I change the X axis type from Categorical to Continuous I get a continuous line but then the weeks are only by 10th and the graph is confusing as you can see below. The points between week 4 and 53 are connected but the line shuld be at the zero as there was no sale.
line chart xaxis continuous type
I just would like to make sure somehow that if there is no value for that week the becasue the customer didnt order it will be show zero in the graph.
In the past I tried to create a calculated column that will "guarantee" always a value if there was no sale.
I also understand that i should potentially look at higher granularity lets say month or quarter but I really hope that there is a way how to solve it.
Thank you
Solved! Go to Solution.
The workaround that's often used for this is to change whatever measure you currently use to calculate your sales by adding +0 to the end of it, I'd try that first
The workaround that's often used for this is to change whatever measure you currently use to calculate your sales by adding +0 to the end of it, I'd try that first
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |