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
TarifAlanazi
Helper II
Helper II

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

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

 

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

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

 

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.

Top Solution Authors