cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
manishbeniwal Frequent Visitor
Frequent Visitor

How to show missing month in chart

show missing month.JPGPlease suggest how to get missing month in this chart. This is 12 month data, but if there is no data power bi not showing month for that.

1 ACCEPTED SOLUTION

Accepted Solutions
v-cherch-msft Super Contributor
Super Contributor

Re: How to show missing month in chart

Hi @manishbeniwal 

You may try to create a measure with IF Fuction like below:

Measure =
IF (
    MAX ( 'Table'[date] ) <= DATE ( 2019, 3, 31 )
        && MAX ( 'Table'[date] ) >= DATE ( 2018, 4, 30 ),
    SUM ( 'Table'[Amount] ) + 0
)

Regards,

Community Support Team _ Cherie Chen
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

4 REPLIES 4
Super User
Super User

Re: How to show missing month in chart

Hi @manishbeniwal 

In the Visualisation Pane right click on your filed (Year Month) and select Show items with no data as below.

image.png

 

Hope this helps
Mariusz

manishbeniwal Frequent Visitor
Frequent Visitor

Re: How to show missing month in chart

By this feature it is showing all 2018 and 2019 months in X-axis. I want to start X-axis from Apr 2018 and last month will be Mar-19.

tex628 New Contributor
New Contributor

Re: How to show missing month in chart

Add +0 to your sum. 

Measure = Sum(Table[Amount]) + 0



v-cherch-msft Super Contributor
Super Contributor

Re: How to show missing month in chart

Hi @manishbeniwal 

You may try to create a measure with IF Fuction like below:

Measure =
IF (
    MAX ( 'Table'[date] ) <= DATE ( 2019, 3, 31 )
        && MAX ( 'Table'[date] ) >= DATE ( 2018, 4, 30 ),
    SUM ( 'Table'[Amount] ) + 0
)

Regards,

Community Support Team _ Cherie Chen
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

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 334 members 3,524 guests
Please welcome our newest community members: