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
Anonymous
Not applicable

TOTALYTD function, but for some rows use another formula

Hi all - I have this problem I can't really figure out how to solve. I have a table with 22 lines and I want measures by month and YTD. By month (yellow, left side below) works fine - no problem. However, in the YTD (blue, right side where I use "totalytd" function) I actually don't want the YTD in line 21 & 22, but instead I want:

Line 22: should be equal to February (or whatever month is chosen in the filter) line 22: 87,244

Line 21: should be line 22 minus line 20: 87,244 - (-27,813) = 115,057

 

Any suggestions ? 🙂

 

Thanks

15-11-2019 14-10-43.png

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use If formula to set a special condition for the last two values.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

If Feb the last month or Feb is selected Totalytd will have data till Feb. All the values are the sum of Jan and Feb. Why you think the last two are wrong?

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