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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Super User
Super User

@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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.