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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alextdarling
Regular Visitor

Stop Running Total Count on a Line chart with no data

Hey All,

 

First post here, haven't been able to fine dmy answer so hopefully this will help someone other than myself!

 

Basically I have a year on year comparison line chart, functioning from a running total calculation using count.

the issue is, is after a certain month, the data trails on for the rest of the year even though there is no data.

I understand why its doing it because the last calculation is being kept on for the other months.

 

For July I'd like it to just stop for 2018, but then when it comes to updating the data with August, it automatically needs to be accepted and extended.

 

Here is the Graph:

 

graph.PNG

 

Here is the DAX:

 

Count of Issue ID running total in Month =
CALCULATE(
COUNTA('Data Services - Resolved Issues'[Issue ID]),
FILTER(
CALCULATETABLE(
SUMMARIZE(
'Data Services - Resolved Issues',
'Data Services - Resolved Issues'[Resolved].[MonthNo],
'Data Services - Resolved Issues'[Resolved].[Month]
),
ALLSELECTED('Data Services - Resolved Issues')
),
ISONORAFTER(
'Data Services - Resolved Issues'[Resolved].[MonthNo], MAX('Data Services - Resolved Issues'[Resolved].[MonthNo]), DESC,
'Data Services - Resolved Issues'[Resolved].[Month], MAX('Data Services - Resolved Issues'[Resolved].[Month]), DESC
)
)
)

 

 

Thanks for any help in advance!

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @alextdarling

As I tested, if the following month after 2018/8 has no value, the line won't extend till the end.

Does result of your formula (measure or calculated column?) has value after 2018/8?

If it has, to achieve your goal, you can use a IF function to let the result of your formula after 2018/8 be blank.

 

Best Regards

Maggie

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.