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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

show all dates on bar chart (also with zero values)

Hi guys,

 

i have a revenue bar chart per day. On some days i don't have revenues but i still want to show the date data points:

 

Unbenannt.PNG

 

For the 15. Apr it's fine but the dates go up until the 25.04.2020. How can i blend them in aswell?

 

Thank you!

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario.

Table:

c1.png

 

You may create a measure as below.

Revenue Measure = 
IF(
    ISBLANK(SUM('Table'[Revenue])),
    0,
    SUM('Table'[Revenue])
)

 

Result:

c2.png

 

You may also try to click 'Visualizations'=>'Format'=>'X axis' and set as below.

c3.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks! Works perfectly

az38
Community Champion
Community Champion

Hi @Anonymous 

for this purpose you need to create a calendar table like

Calendar = CALENDARAUTO()

the create relationships between Calendar and your fact table by Date field, then put Calendar[Date] field to visual as X-axis

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors