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
Travis_rh
Frequent Visitor

KPI Card for current month only is displaying incorrectly

Hi,

 

I'm trying to display a simple KPI based on a current month only actual versus budget (AvB) value. I have a measure that calculates current month variance and a measure for the AvB goal which is 0. I also have a single row, single value table for AvB which is also 0. The standard KPI card visual will display correctly (red when actuals > budget, green when actuals < budget) if I use the table version of AvB goal, but then displays Blank with green text when I use the measure version of AvB. 

 

1) What am I missing or what is not calculating correctly? 

2) Are there other KPI or Card visuals that might be able to handle this instance without issue? 

 

Below are some screenshots. 

KPI Incorrect with AvB Measure.jpgKPI Correct with AvB Table.jpg

3 REPLIES 3
amitchandak
Super User
Super User

@Travis_rh , can you share the formula?

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

@amitchandak 

 

The AvB goal measure is simply "AvB Goal Measure = 0" and it's formatted as English (U.S.) Currency. It's not easy to see, but is shown in the first screenshot, titled "KPI Incorrect with AvB Measure"

 

The AvB goal table is a single column and row of manually entered data with a value of 0. Here's a screenshot from the data view:

AvB Goal Table.jpg

 

 

 

 

 

 

 

 

 

I also built a few tables to shown the data from the variance measures, AvB Goal measure, and AvB table side by side. 

Table View of Variance and Goals.jpg

 

 

 

 

 

 

 

 

 

Thank you! 

Hello @Travis_rh ,

Perhaps the reason for your current month measure.

You can add the ALLSELECTED function in a filter like this,

Current month = CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),MONTH('Table'[date])=MONTH(TODAY())))

kpi1.jpg

kpi2.jpg

If you don't meet your requirements, could you show the exact expected result based on the table we shared?

Best regards

Community support team _ zhenbw

If this post helps,then consider Accepting it as the solution to help other members find it faster.

BTW, pbix as an attachment.

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.