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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to stop the duplicate data on the line

the data should stop on Apr 2023 why it show end of year so how can i fix that as you see the below

TarifAlanazi_0-1676365096148.png

 

4 REPLIES 4
Anonymous
Not applicable

EzgiAslankara_0-1676381876039.png

You have a syntax error. It should be like this ALLEXCEPT('Aecom', 'Aecom'[Month])

if you have a Month column you can create like this sample dax , if you dont. You have to get month value from your date value

Anonymous
Not applicable

Column = IF(CALCULATE([Forecast Hours + Actual Hours],ALLEXCEPT('Date','Date'[Month]))=0,FALSE(),TRUE())




Aecom Forecast Hours + Actual Hours running total in Date =
CALCULATE(
    [Aecom Forecast Hours + Actual Hours],
    FILTER(
        ALLSELECTED('Date'[Date]),
        ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
    )
)
TarifAlanazi_0-1676440069824.png

 



Anonymous
Not applicable

Hi @Anonymous 

 

I think you're making a cumulative total in the line chart, you have to perform a monthly total, apart from the formula you use. You should create a column where you will give "False" if the total for April is 0, and "True" if not.

I tried to create a demo for you below. You could also create something similar to your own power bi about whether the month-based sum is 0 or not.

If you keep only the "Trues" in the graph after you have created this structure. The areas you don't want will be gone.

 

EzgiAslankara_0-1676366235699.png

Best regards,

Ezgi Naz Aslankara

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

Anonymous
Not applicable

Column = IF(CALCULATE(SUM(Aecom[Hours]),ALLEXCEPT(Aecom ',' Aecom[ Hours]'[moth]))=0,FALSE(),TRUE())
 
TarifAlanazi_0-1676381222211.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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