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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to avoid the data to be duplicated in line chart

Hello everyone,

 

I am trying to do show the signings vs the target (calendarized) but we do not have yet the signings data from may to december 2021. 

 

How can I do to avoid the data to show "92" from may to december ? 

 

 

WhiteLight_FI_0-1620378837032.png

 

Here are my 2 measures :

 

Signings Cumulated = CALCULATE(SUM('Opp Table'[Premium €]),'Opp Table'[Negotiation Status]="7-Won",'Opp Table'[Status Signings Date (Year)]=2021,
FILTER(ALL('Calendar'),
'Calendar'[KeyDate]<= MAX('Calendar'[KeyDate])))
 
Target Full Year = CALCULATE(SUM(Targets Table[Target NB Calendarized (K€)]),'Calendar'[KeyYear]=2021,
FILTER(ALL('Calendar'),
'Calendar'[KeyDate]<= MAX('Calendar'[KeyDate])))

 

 

Thank you. 

 

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

Hi @Anonymous ,

Since there is no your actual data, so I built a model myself, you can refer to it, I hope it can bring you help.

 

Base data:

v-luwang-msft_0-1620724526878.png

then use the following measure:

actsum =
VAR test1 =
    CALCULATE (
        SUM ( 'Table'[act] ),
        FILTER ( ALL ( 'Table' ), 'Table'[month] <= MAX ( 'Table'[month] ) )
    )
VAR test2 =
    CALCULATE (
        MIN ( 'Table'[month] ),
        FILTER ( ALL ( 'Table' ), 'Table'[act] = BLANK () )
    )
VAR test3 =
    IF ( MAX ( 'Table'[month] ) < test2, test1, BLANK () )
RETURN
    test3
taract = CALCULATE(SUM('Table'[tar]),FILTER(ALL('Table'),'Table'[month]<=MAX('Table'[month])))

 

And final get the below:

v-luwang-msft_1-1620724652825.png

 

You could download my pbix file if you need.

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Since there is no your actual data, so I built a model myself, you can refer to it, I hope it can bring you help.

 

Base data:

v-luwang-msft_0-1620724526878.png

then use the following measure:

actsum =
VAR test1 =
    CALCULATE (
        SUM ( 'Table'[act] ),
        FILTER ( ALL ( 'Table' ), 'Table'[month] <= MAX ( 'Table'[month] ) )
    )
VAR test2 =
    CALCULATE (
        MIN ( 'Table'[month] ),
        FILTER ( ALL ( 'Table' ), 'Table'[act] = BLANK () )
    )
VAR test3 =
    IF ( MAX ( 'Table'[month] ) < test2, test1, BLANK () )
RETURN
    test3
taract = CALCULATE(SUM('Table'[tar]),FILTER(ALL('Table'),'Table'[month]<=MAX('Table'[month])))

 

And final get the below:

v-luwang-msft_1-1620724652825.png

 

You could download my pbix file if you need.

Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , Try measure like

 

Signings Cumulated =
var _1 = maxx(allselected('Calendar'),'Calendar'[KeyDate])
return
CALCULATE(SUM('Opp Table'[Premium €]),'Opp Table'[Negotiation Status]="7-Won",'Opp Table'[Status Signings Date (Year)]=2021,
FILTER(ALL('Calendar'),
'Calendar'[KeyDate]<= MAX('Calendar'[KeyDate]) && 'Calendar'[KeyDate] <= _1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors