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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

KPI Visual target as average

I have a KPI visual for which the Value shows accurately as the last period of the year but the Target shows the same, where I want to show the average of that year's values..

 

See below

 

 

 

legonzales_0-1739297896992.png

 

 

Thank you in advance

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Have you solved your problem? If it is solved, please share your solution and accept it as solution or mark the helpful replies, it will be helpful for other members of the community who have similar problems as yours to solve it faster. Thank you very much for your kind cooperation!

 

Best Regards,
Zhu

wini_R
Solution Supplier
Solution Supplier

Hey @Anonymous,
Can you please paste some sample data in a text format, your current result including formulas as well as the expected result? It would be very helpful to look  into the issue

How to Get Your Question Answered Quickly

Anonymous
Not applicable

 

see below, thank you

 

 

 ValueTarget
Jan 24   20,660,704   23,968,673
Feb 24   21,788,842   23,968,673
Mar 24   23,213,945   23,968,673
Apr 24   22,636,504   23,968,673
May 24   22,723,961   23,968,673
Jun 24   25,621,215   23,968,673
Jul 24   25,341,145   23,968,673
Aug 24   23,048,609   23,968,673
Sep 24   25,639,396   23,968,673
Oct 24   24,680,700   23,968,673
Nov 24   26,198,004   23,968,673
Dec   26,071,045   23,968,673
Average   23,968,673 

 

 

Payroll Expense Brand_Avg =
  VAR MonthlyTotals =
    SUMMARIZE(
        'Main Data',
        'Main Data'[Brand],
        'Main Data'[Year],
        'Main Data'[Month], -- 'Month' represents unique months
        "MonthlyTotal", SUM('Main Data'[Payroll])
    )

  VAR TotalSum = SUMX(MonthlyTotals, [MonthlyTotal])
  VAR MonthCount = DISTINCTCOUNT('Main Data'[Month]) -- Count unique months

RETURN
IF(
    MonthCount > 0,
    TotalSum / MonthCount,
    BLANK()
)

Hi @Anonymous,

I'm not sure about the exact formula in your scenario because sample data does not match the logic in your formula but my best guess would be a calculation similar to that one:

wini_R_0-1739349310337.png

Avg = 
CALCULATE(
    AVERAGEX(
        ADDCOLUMNS(
            SUMMARIZE(tbl2, tbl2[Period]),
            "@sum", CALCULATE([Value Sum])
        ),
        [@sum]
    ),
    ALL(tbl2[Period])
)
Anonymous
Not applicable

Thank you, it might be my data configuration, I get the same old results when using your formula

Anonymous
Not applicable

Thanks for the reply from wini_R.

 

Hi @Anonymous ,

 

Based on my test, the formula provided by wini_R is functional. Please replace the Period field in the formula with the field you are using. If there are other columns in the visual, please also add that field in the ALL function.

 

vlinhuizhmsft_0-1739856592853.png

 

 

Best Regards,
Zhu

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors