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
OmkarNag99
Frequent Visitor

In Continuous week i want continuous line

OmkarNag99_0-1730962692201.png

Hi Team,

Here i'm attached a one snip shot 

Basically i want continuous line in Bar chart but it is not showing in the chart.

in same chart which places are shows blank should replace with 0 

here is the forumla i used :- 

COUNT('Project-Tracker Main'[SOW Visibility Week ]) +0

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @OmkarNag99 

You can refer to the following.

vxinruzhumsft_0-1731394800862.png

 

Create a new table

Table2 =
SUMMARIZE (
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2022, 1, 1 ), DATE ( 2024, 12, 31 ) ),
        "Year-WeekNum",
            WEEKNUM ( [Date] ) & "`"
                & RIGHT ( YEAR ( [Date] ), 2 )
    ),
    [Year-WeekNum]
)

Then create a 1:n relationship between the tables.

vxinruzhumsft_1-1731394855730.png

 

Then create the the measures .

Plan Line = SUM('Table'[Cum_visible])+0
Real Line = SUM('Table'[Cum_visible_Completed])+0

Then put the following field to the visual.

vxinruzhumsft_2-1731394904225.png

 

Output

vxinruzhumsft_3-1731394931912.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

8 REPLIES 8
Anonymous
Not applicable

Hi,

Thanks for the solution bhanu_gautam  offered, and i want to offer some more information for user to refer to.

hello @OmkarNag99 , based on your descriotion, you can create a new table to store the week , you can refer to the following sample.

Sample data

vxinruzhumsft_0-1731033243984.png

Create a new table week

vxinruzhumsft_1-1731033283077.png

 

Create a 1:n relationship between tables.

vxinruzhumsft_2-1731033307312.png

 

Then create the measure.

Measure = SUM('Table'[Value])+0

Put the measure and the week field in week table to a visual.

vxinruzhumsft_3-1731033416236.png

 

Output

vxinruzhumsft_4-1731033425767.png

 

It is continuous.

 

 

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.

@Anonymous  thanks for the solution🙂 ...

I am facing an issue with my dataset. The dataset spans three years and contains data for multiple weeks. I'm unable to establish a proper many-to-one (1:*) relationship because of this structure.

When I remove duplicate weeks or use data from only one year, I get the expected output. However, this doesn't fulfill my requirement, as I need to analyze the data across the full three-year period.

Could you please help me find a solution to this issue?

 

OmkarNag99_0-1731135622906.png

 

Anonymous
Not applicable

Hi @OmkarNag99 

Thank you for your reply, and based on your description, can you provide some sample data so that can provide more suggestion for you.

 

Best Regards!

Yolo Zhu

 

OmkarNag99_2-1731330417721.png

 

Yes, @Anonymous  I'm sharing the sample & short data based on my chart.

In my chart:

X-axis: Concatenation of YEAR and WEEK.
Y-axis: 2nd column is Count of Visible.
Plan Line (Y-axis): 3rd column is Cumulative count of Count of Visible.
Actual Line (Y-axis): 4th column is Cumulative count of Count of Visible where the Status is Completed.
Legend: Represents different types of SOW.

 

Anonymous
Not applicable

Hi @OmkarNag99 

You can refer to the following.

vxinruzhumsft_0-1731394800862.png

 

Create a new table

Table2 =
SUMMARIZE (
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2022, 1, 1 ), DATE ( 2024, 12, 31 ) ),
        "Year-WeekNum",
            WEEKNUM ( [Date] ) & "`"
                & RIGHT ( YEAR ( [Date] ), 2 )
    ),
    [Year-WeekNum]
)

Then create a 1:n relationship between the tables.

vxinruzhumsft_1-1731394855730.png

 

Then create the the measures .

Plan Line = SUM('Table'[Cum_visible])+0
Real Line = SUM('Table'[Cum_visible_Completed])+0

Then put the following field to the visual.

vxinruzhumsft_2-1731394904225.png

 

Output

vxinruzhumsft_3-1731394931912.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

@Anonymous  thanks for the solution🙂 ...

I am facing an issue with my dataset. The dataset spans three years and contains data for multiple weeks. I'm unable to establish a proper many-to-one (1:*) relationship because of this structure.

When I remove duplicate weeks or use data from only one year, I get the expected output. However, this doesn't fulfill my requirement, as I need to analyze the data across the full three-year period.

Could you please help me find a solution to this issue?

 

OmkarNag99_0-1731135622906.png

 

bhanu_gautam
Super User
Super User

@OmkarNag99 , 

Use the IF function to check for blank values and replace them with 0.
Here is the DAX formula you can use:

SOW Visibility Count =
IF(
ISBLANK(COUNT('Project-Tracker Main'[SOW Visibility Week])),
0,
COUNT('Project-Tracker Main'[SOW Visibility Week])
)


Ensure Continuous Line: If you are using Power BI, make sure to use a line chart instead of a bar chart to get a continuous line. In the chart settings, ensure that the axis is set to show all weeks, even if some weeks have no data.

 

Configure the Chart: In Power BI, you can configure the chart to handle missing values by connecting data points with a line. This can usually be done in the chart settings under the "Format" pane.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






OmkarNag99_0-1730970079350.png

Still not showing continuous week in power bi 

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.