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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
efogelberg
Frequent Visitor

How to Have Visual Show All Months up to Present

Howdy everyone,

 

I have a predicament. Currently I have a PowerBI page that is pulling data from a large spreadsheet and counting "failures". I've dumbed down the spreadsheet for example purposes but it is similar to this:

 

efogelberg_2-1715268756966.png

 

We track events where some events are "failures", others are not but need tracked. The visual I have is only pulling and counting number of failures but doesn't show months since then without any failures and looks like this:

 

efogelberg_1-1715268738974.png

 

 

It's not that it's not showing data with value = zero. There's just that there's no data to count. Is there a way to have the visual show JAN-present like the below without having to make a separate spreadsheet to track this data? Thanks in advance!

 

efogelberg_0-1715268687796.png

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @efogelberg ,

 

1. Create measure and count the number of failures.

Measure =
CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Failure] = "Yes" && MONTH('Table'[date]) = MONTH(MAX('Table'[date]))))

 

2. Right click the field on x-axis, tick "show items with no data".

vkaiyuemsft_0-1715306426791.png

 

vkaiyuemsft_1-1715306426792.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

1 REPLY 1
v-kaiyue-msft
Community Support
Community Support

Hi @efogelberg ,

 

1. Create measure and count the number of failures.

Measure =
CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Failure] = "Yes" && MONTH('Table'[date]) = MONTH(MAX('Table'[date]))))

 

2. Right click the field on x-axis, tick "show items with no data".

vkaiyuemsft_0-1715306426791.png

 

vkaiyuemsft_1-1715306426792.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.