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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
a-santiago
Frequent Visitor

SUM TOTAL KPI'S

HI!

I'm trying to rewrite the next formula in order to be able to SUM the totals of the different KPIS of my table, not to retrieve the last value.
*** I do need to retrieve the value for the last date of each year cause otherwise, I'll have duplicates. But in the end, I want the total to sum the result of each year:

asantiago_0-1670286446322.png

Here is an example of how I calculate the Tier 1:

CALCULATE( SUM(SNAP[KPI_VALUE])
            ,FILTER(SNAP,SNAP[KPI_ID]=110)
            ,FILTER(
                ALL(SNAP[YTD_MONTH]), SNAP[YTD_MONTH]=MAX(SNAP[YTD_MONTH]))

)+0)
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@a-santiago , checkout closingbalanceyear and lastnonblankvalue

Power BI closingbalancemonth closingbalancequarter closingbalanceyear, lastnonblankvalue- Closing Balance, Distribute Target: https://youtu.be/yPQ9UV37LOU

 

or

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@a-santiago , checkout closingbalanceyear and lastnonblankvalue

Power BI closingbalancemonth closingbalancequarter closingbalanceyear, lastnonblankvalue- Closing Balance, Distribute Target: https://youtu.be/yPQ9UV37LOU

 

or

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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