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

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

Reply
mahawkins3
Helper I
Helper I

Discrepancy in measure output when used in column chart with/without legend

Hi,

 

I have a measure which calculates total fees projected for the current month (e.g. if there is data up to April 3rd, it will divide by 3 and multiply by 30 to calculate a simple full-month forecast). See below:

 

Capture.PNG

 

When I put this into a stacked column chart, breaking the fees down into different types, the respective chunks of the stack add up to the correct total (let's say 60k). However, when I remove the "fee type" parameter from the legend and just show a single block for all fees, it calculates a different value (50k). This seems strange to me, because the underlying calculation going into both should be the same (regardless of whether I subdivide the values using a legend) - it's using the same data, so the MAX([SettlementDate]) calculation should return the same value either way. The issue seems to be that when it generates the visual with the single column (no legend), it reads the MAX([SettlementDate]) as being one day further ahead than it should be, so the total comes out lower than it should.

Any idea why this would be happening?

The only reason I'm trying to calculate both ways is that Power BI doesn't allow you to put a total at the top of a stacked column, so I want to put the "total" version behind my stack so the value shows above my stack... problem is it's giving me the wrong total!

Thanks in advance,
Matt

1 REPLY 1
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @mahawkins3,

>>if there is data up to April 3rd, it will divide by 3 and multiply by 30 to calculate a simple full-month forecast.

Based on my understanding, you should use Day(Today()) rather than Day(MAX(Fees[SettlementDate])) in DIVIDE() function. 

In addtion, I am still confusing your requirement. Is there any chance to post your sample data or screenshot for analysis? So that we can post solution which is close to your requirement.

If you have other issues, please feel free to ask.

Best Regards,
Angelia

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.