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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jgilbert
New Member

Report Server KPI Status

I am trying to create a dataset to control the status (red, green) of a KPI widget. I used the below query (minus count from year 1 YTD and year 2 YTD) hoping that just being a negative or positive number would provide me with my intended results however it looks like the KPI widget is expecting ecaxtly 1, 0, or -1. I am not sure how best to accomplish this.

 

 

SELECT
  (SELECT COUNT(nEventID) FROM Xyz123View WHERE YEAR(tCreationTime)=YEAR(DATEADD(year,-1,GETDATE())))-(SELECT COUNT(nEventID) FROM Xyz23View WHERE YEAR(EMXMLAgencyEventView.tCreationTime)=YEAR(GETDATE())) AS difference

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jgilbert ,

In Report Server Portal,when you create a KPI, ou could set "Status".This field compares the key performance indicator value and goal scores. It has only three options -1 bad, 0 (neutral) and 1 (good). At the same time, this values changes the color of the KPI.

vbinbinyumsft_0-1672626421716.png

For more details, you can read related document: How to automatically create KPIs in SQL Server Reporting Services (sqlshack.com)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jgilbert ,

In Report Server Portal,when you create a KPI, ou could set "Status".This field compares the key performance indicator value and goal scores. It has only three options -1 bad, 0 (neutral) and 1 (good). At the same time, this values changes the color of the KPI.

vbinbinyumsft_0-1672626421716.png

For more details, you can read related document: How to automatically create KPIs in SQL Server Reporting Services (sqlshack.com)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.