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
PuzzledSpark
Frequent Visitor

Why does this result in a cumulative amount?

Redirecting this to my other post:

https://community.powerbi.com/t5/Desktop/Subtotal-not-correct/m-p/331048/highlight/false#M147991

 

 

------------------

 

My data is in YTD format. So I created a measure called [AmountQTD] that subtracts the previus quarter to give the QTD

 

Now if I do this:

GrossProfit_QTD = CALCULATE([AmountQTD])

 

I get the same QTD number back, as expcted.

 

If I do this:

GrossProfit_QTD = CALCULATE([AmountQTD],filter('P&L',[accountLevel4]="Total Gross Profit"))

 

I get a cumulative amount being returned. Why is this? Note all fields referenced here belong to the same 'P&L table.

2 REPLIES 2
Anonymous
Not applicable

HI @PuzzledSpark,

 

Which relationships you used to link these tables? Single or both? If single, I'd like to suggest you modify the cross filter direction option to both and try again. (when you use single option, the filter effect only works on one side)

 

In addition, I think you can add more group/category column to help measure calculated on all row contents.

 

Regards,

Xiaoxin Sheng

mattbrice
Solution Sage
Solution Sage

Can’t give an answer without more information. Tables?  Model design? Measure formulas?  Separate calendar table?

 

or post sample file.  

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