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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Plot zero when there is no data in cumulative graph

Hi guys,

 

I made the following cumulative graph:

 

Reda89_0-1611225823888.png

 

And used the following measure:

 

 

Measure = IF(SELECTEDVALUE('DateTabel'[Date]) > CALCULATE( LASTDATE(Tonnage_table[Day]), ALL(Tonnage_table)), BLANK(),
                            CALCULATE( SUM(Tonnage_table[Tonnage]),
                                        FILTER(ALLSELECTED('DateTabel'),
                                        'DateTabel'[Date] <= MAX('DateTabel'[Date]))))

 

 

Now i would like to show zero when there is no data and start over with the cumilative graph like i show below in red line.

The results should look like this :

 

Reda89_2-1611226054613.png

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

Create measure +0 if needed

Measure 10 = IF(SELECTEDVALUE('DateTabel'[Date]) > CALCULATE( LASTDATE(Tonnage_table[Day]), ALL(Tonnage_table)), BLANK(),
                            CALCULATE( SUM(Tonnage_table[Tonnage]),
                                        FILTER(ALLSELECTED('DateTabel'),
                                        'DateTabel'[Date] <= MAX('DateTabel'[Date]))))+0

 

 

Change type to categorial

Axis_type.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

What is +0 supposed to do ?

 

When I changed to categorical and use inteval year then its not is the graph not readable anymore, on top of that it dosent give me the desired result.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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