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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
OliverFl
Regular Visitor

Month over month aggregated value is blank for months with no data

Hello everybody,

 

I have been working with a report which worked great until we had a few months with no data. After searching around the forums, googling, and asking a few chatbots without resolve, I figured it is time to create my first forum post.

 

I have a table which shows opened tickets, closed tickets, net opened tickets and Open tickets aggregated.

 

OliverFl_0-1727857938390.png

 

Everything works as expected for months with data, but for months with no data, the aggregated measure turns blank.

 

The measure is calculated like:
Tickets Open Agg =
CALCULATE (
   SUMX (

          VALUES ( 'Date Table'[Date] ),

          [Net Open tickets] + 0

              ),
   FILTER (
      ALL ( 'Date Table'[Date] ),
      ISONORAFTER ( 'Date Table'[Date], MAX ( 'Date Table'[Date] ), DESC )
   )
)

As you can see I have a proper date table with all the dates necessary. My problem seems to be that when I have no data, the Tickets open agg-measure simply isn't calculated, and I'm unable to force it to calculate.

 

If you need anymore detail, please let me know.

 

Many thanks in advance!

 

 

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

Hi MFelix ,thanks for the quick reply, I'll add more.

Hi @OliverFl ,

Try this 

Measure = 
CALCULATE(SUMX('Table',[Net_open_ticket]),FILTER(ALL(DateTable),ISONORAFTER([Date],MAX('DateTable'[Date]),DESC))
)

Final output

vzhouwenmsft_0-1730344770565.png

 

Best Regards,
Wenbin Zhou

View solution in original post

4 REPLIES 4
v-zhouwen-msft
Community Support
Community Support

Hi MFelix ,thanks for the quick reply, I'll add more.

Hi @OliverFl ,

Try this 

Measure = 
CALCULATE(SUMX('Table',[Net_open_ticket]),FILTER(ALL(DateTable),ISONORAFTER([Date],MAX('DateTable'[Date]),DESC))
)

Final output

vzhouwenmsft_0-1730344770565.png

 

Best Regards,
Wenbin Zhou

MFelix
Super User
Super User

Hi @OliverFl ,

 

Try the following code:

 

Tickets Open Agg = SUMX(
			ADDCOLUMNS(
				SUMMARIZE(
					'Date Table',
					'Date Table'[year],
					'Date Table'[month]
				),
				"_NetOpenTickets",  ,CALCULATE(
					[Net Open tickets] + 0,
					FILTER(
						ALL('Date Table'[Date]),
						ISONORAFTER(
							'Date Table'[Date],
							MAX('Date Table'[Date]),
							DESC
						)
					)
				)
			),
			[_NetOpenTickets]
		)

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi, thanks for the suggestion!

 

I'm afraid I still get the same problem, all months with no data are blanks but the aggregation measure works just fine.

I think there is a comma too much, right? "_NetOpenTickets", ,CALCULATE("

 

Yes you are correct about the comma sorry for teh error copying 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Users online (2,683)