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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Show number of reports by day with empty values

Hey everyone and happy new year,

 

i want a line chart that shows me the number of reports someone created on a specific day and also shows the days where no report was created. So on the Y-Axe is the number of Reports (0-X) and on the X-Axe the days (1-31). I already got the chart with the values, but it is not possible to set "0" für some days where no reports are created:

 

image.png

As you can see on day 1 two reports were created and on day 4 one report were created. But for day 2 and 3 he should show zero reports where created. In the line chart i selected the date hierarchy and then only show the day on the X-Axe. In the Valuefield is the number of reports.

 

The values came from two different tables:

Table A:

image.png

Table B:

image.png

The relationship is on ID and Object ID as 1:* because there are several entries in Table B.

 

So the result should look like this:

image.png

 

looking forward to hearing from you.

 

Kind regards

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on your description, you just display days in the x-axis, y-axis shows the count of report. Based on your sample, I think you just need the TableB. I use TableB to get the expected result, please follow the steps below.

1. Create 1-31 days in a new table named 'Day'.

2.PNG

2. Create a calculated column to get day in TableB using the formula: Day = DAY(TableB[DateReportcreation])

1.PNG
3. Create relationship between 'Day' and 'TableB' as follows.

3.png

4. Create a mreasure to get the count of report, create a line chart, select the Day[Day] as x-axis, the measure as y-axis, you will get expected result.

count of report = COUNT(TableB[Object ID])+0

4.PNG

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on your description, you just display days in the x-axis, y-axis shows the count of report. Based on your sample, I think you just need the TableB. I use TableB to get the expected result, please follow the steps below.

1. Create 1-31 days in a new table named 'Day'.

2.PNG

2. Create a calculated column to get day in TableB using the formula: Day = DAY(TableB[DateReportcreation])

1.PNG
3. Create relationship between 'Day' and 'TableB' as follows.

3.png

4. Create a mreasure to get the count of report, create a line chart, select the Day[Day] as x-axis, the measure as y-axis, you will get expected result.

count of report = COUNT(TableB[Object ID])+0

4.PNG

Best Regards,
Angelia

Anonymous
Not applicable

Hi Angelia

 

thanks for the solution! I already found another visualization. If you choose the bar chart, you do not need another table with the days, you just add the field "DateReportcreation" as "Day" on the axe and count of "DateReportcreation" as value.

 

Best regards

Marvin

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.

Top Solution Authors