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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
seanpratt
Helper III
Helper III

YTD Total is Slightly Off

Good morning,

I've noticed an error in my running total (column 'Measure'). I'm thinking it's easy but having some problems tinkering with it.

I want to simply add the totals in [% Turnover] (this is a measure) together. So it's simply 9.7 + 7.1 + 10.3 = 27.1% but I'm getting 27.5%.

 

I understand that the 27.5% is coming from the total terminations / YTD average ([14+12+23] / AVERAGE(144.3+168.3+222.7)) but I do not want this way of calculating it as it tends to confuse the audience. 

 

Can anyone provide a formula to try so I get the 27.1% at end of Q3?

 

 

powerBIhelp.PNG

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

Hi @seanpratt ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1668759011509.png

(2) We can create a calculated column.

Year = YEAR('Table'[Date])
Quarter = QUARTER('Table'[Date])

(3) We can create a measure.

Measure = CALCULATE([% Turnover],'Table'[Quarter]<=SELECTEDVALUE('Table'[Quarter]))

(3) Then the result is as follows.

vtangjiemsft_1-1668759350136.png

Best Regards,

Neeko Tang

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

View solution in original post

3 REPLIES 3
v-tangjie-msft
Community Support
Community Support

Hi @seanpratt ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1668759011509.png

(2) We can create a calculated column.

Year = YEAR('Table'[Date])
Quarter = QUARTER('Table'[Date])

(3) We can create a measure.

Measure = CALCULATE([% Turnover],'Table'[Quarter]<=SELECTEDVALUE('Table'[Quarter]))

(3) Then the result is as follows.

vtangjiemsft_1-1668759350136.png

Best Regards,

Neeko Tang

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

Shaurya
Memorable Member
Memorable Member

Hi @seanpratt,

 

You can use:

 

Measure = CALCULATE([% Turnover],FILTER(ALL('Table'),'Table'[Quarter]<=MAX('Table'[Quarter])))

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

Unfortunately that did not work. It actually kept a running count into the following year which is not ideal.

 

powerBIhelp.PNG

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors