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
Shorty_AO
Helper I
Helper I

KPI YE Goal DAX

Hello,

 

I have created a KPI to measure our inventory to YE balance in 2019.  The KPI was working correctly until I added November 2019 data.  Now the KPI is showing the Combined amounts rather then just Dec 2019.  How do I adjust my measure below to only show Dec-19 balance?Capture.2.PNGCapture.PNG

 

Thanks in Advance

2 REPLIES 2
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Shorty_AO 

 

use something like this:

YE_Bal =
RETURN
    CALCULATE (
        [Total Inv],
        FILTER (
            ALL ( 'Calendar' ),
            'calendar'[year] = YEAR ( TODAY () ) - 1
                && 'calendar'[month] = 12
        )
    )

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Thanks.  I was able to use DATESBETWEEN('Calendar'[Date],"12/01/2019","12/31/2019")) to get it to work.

 

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.

Top Solution Authors