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
Anonymous
Not applicable

Show 0 in my trendline (measure) in month June

Hello,

I should see 0 in the month of June, but as you see (blue line) - I do not see anything - the line stops in June...

 

justyna_kmiecik_0-1655135614556.png

 

 

The measure is here:

 

Incidents 2022 = CALCULATE(SUM('Issues'[Issue Y/N]),'Date Table'[Year]=MAX('Date Table'[Year]))
 
Incidents 2021 = CALCULATE(SUM('Issues'[Issue Y/N]),'Date Table'[Year]=MAX('Date Table'[Year])-1)
 
I tried to add+ 0 but it messes up my trendline...
I need to see 0 for the month of June...so far it just looks (blank) - how to replace blank with 0?
 
Incidents 2022 = CALCULATE(SUM('Issues'[Issue Y/N]),'Date Table'[Year]=MAX('Date Table'[Year]))+0
justyna_kmiecik_1-1655135747138.png

 

 
 
 
 
1 REPLY 1
ribisht17
Community Champion
Community Champion

@Anonymous 

 

I am not sure why you want to have 0 there.

But if your logic is to show 0 for the present month then it will be simply,

 

If Month=Current Month then 0 else YOUR Calculation > Incidents 2021 end/This way it will just make 0 for the current month

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

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.