Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have the following chart, with a card above the chart that shows average of total sick days and latest value.
The way my data model is that I have a table called Sales with columns like Month, Month/Year in format mmmm-yyyy, and Sick Leave.
Latest value = CALCULATE(AVERAGE('Table'[Sick leave]),FILTER('Table',MONTH('Table'[Month/Year]) = MONTH(TODAY())))
Average of sick leave = AVERAGE('Table'[Sick leave])
However what this does is that if the current month is October, the latest value will show as blank if the October data is not available. Sometimes the data is not received until 2nd week of month and I don't want the card showing blank, for example if october data is not ready, rather than showing blank I want it showing september value until october value has been added. Is it possible?
Also when selecting other columns, is it possible to keep the latest value card as not blank?
Solved! Go to Solution.
Thank you, yep it worked, solution below
Hi,
Latest value =
VAR maxMonthTable =
MONTH(MAX('Table'[Month/Year]))
RETURN CALCULATE (
AVERAGE ( 'Table'[Sick leave] ),
FILTER ( 'Table', MONTH ( 'Table'[Month/Year] ) = maxMonthTable )
)
@lukiz84 Thank you! Is it possible for when selecting different months, the latest value remains the same as it is. For example when picking July and August, I want the latest available data (which in this case is September) to show up instead of August value.
Hi,
sure, sorry:
Latest value =
VAR maxMonthTable =
CALCULATE(
MONTH(MAX('Table'[Month/Year])),
ALL('Table')
)
RETURN CALCULATE (
AVERAGE ( 'Table'[Sick leave] ),
FILTER ( 'Table', MONTH ( 'Table'[Month/Year] ) = maxMonthTable )
)
or if you have a date table in place (i'm not sure if you do):
Latest value =
VAR maxMonthTable =
CALCULATE(
MONTH(MAX('Table'[Month/Year])),
ALL('Dates')
)
RETURN CALCULATE (
AVERAGE ( 'Table'[Sick leave] ),
FILTER ( 'Table', MONTH ( 'Table'[Month/Year] ) = maxMonthTable )
)
Do you have a date table in place?
but try
Latest value =
VAR maxMonthTable =
CALCULATE(
MONTH(MAX('Table'[Month/Year])),
ALL('Table[Month/Year]')
)
RETURN CALCULATE (
AVERAGE ( 'Table'[Sick leave] ),
FILTER ( ALL('Table'), MONTH ( 'Table'[Month/Year] ) = maxMonthTable )
)
ok did you try my latest measure?
Thank you, yep it worked, solution below
fine, please mark my answer as solution 😉
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |