Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Scorecard - Averaging/Rolling Up TTL for YTD Value Metric

I have tried every combination I can think of to get the "Current Value" to show up as a "rolling" average or roll up the total for the current fiscal year. I am sure I am overlooking something simple. Currently using manual entry at the end of each month to report a "value" for that specific month. Would like the current value to then reflect the average of all months entered so far. I can't seem to make this happen. Currently, have to calculate on my own the total or average and enter that manually. I will eventually connect to automated data, but not an option right now. (cut off some in visuals for confidentiality).

 

Roll-Up of Total Example:

b762453_0-1700679303613.png

From the above, FYTD shows 2, but require it to show 9 FYTD as a total against a goal of 20. 2 is the last "check-in" entered for August, 2023.

b762453_1-1700682760677.png

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

Averaging Example:

b762453_2-1700682942176.png

As of August, 2023 Current Value should show 5.31, rather than showing 2.87.

b762453_3-1700683146498.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , for monthly Avg using date table

 

YTD Today =
var _min = eomonth(today(),-1*month(today()))+1
var _max = today()
return
CALCULATE(Averagex(Values('Date'[Month Year]) ,[Your Measure]) , FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))

 

 

In case there is filter on page

 

YTD Today =
var _min = eomonth(today(),-1*month(today()))+1
var _max = today()
return
CALCULATE(Averagex(Values('Date'[Month Year]) ,[Your Measure]) , FILTER(all('Date') ,'Date'[Date] >=_min && 'Date'[Date] <= _max))

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

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 Solution Authors (Last Month)
Top Kudoed Authors (Last Month)