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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

SUM OF ANNUAL TARGETS with MONTHLY filter

Dear All

I'm building a graph with following measures:

Annual targets vs. Actual YTD target

 

For "Actual YTD target" the calculation works: when the user flags feb, por exemplo, the measure takes the sum of Jan + Feb.

But for Target i don't want YTD, but the yearly/annual target. Can do i build this measure since i still have month as part of my filter?

 

 

ANE2CAbo_0-1655038516480.png

 

Thanks for your support.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

ANE2CAbo

 

try this

Test = CALCULATE([MTD EUR TGS], keepfilters('dCalendar'[Year]),REMOVEFILTER(('dCalendar'[Month]))

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@Anonymous  your proposal worked! thanks very much for your support. I already accepted it as solution.

Have a good day.

v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

I have created a simple sample, please refer to it to see if it helps you.

target_all = CALCULATE(SUM('Table'[value]),ALL('Table'))

 

vpollymsft_0-1655261035104.png

If I have misunderstood your meaning, please provide your desired output with more details and you sample pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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

 

Anonymous
Not applicable

Hi @Anonymous  but i need the month filters for YTD calculation.

I'm trying something on this direction, but it's not working:

 

Test = CALCULATE([MTD EUR TGS], ALLSELECTED('dCalendar'[Year]))
Anonymous
Not applicable

ANE2CAbo

 

try this

Test = CALCULATE([MTD EUR TGS], keepfilters('dCalendar'[Year]),REMOVEFILTER(('dCalendar'[Month]))

Anonymous
Not applicable

Hello

 

Yes you can. You remove month filter and keepfilters on year and all(dates)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.