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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

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
v-xinruzhu-msft
Community Support
Community Support

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.

@v-xinruzhu-msft  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

 

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, @v-xinruzhu-msft  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.

 

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

@v-xinruzhu-msft  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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.