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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
benP
Frequent Visitor

Comparing top performers with selection

Hi, 

 

Im hoping someone can help me.

 

I have some Energy consumption data which is tied to a number of (480) buildings, i'm recieving data daily and loading this to SQL database. The data shows an Energy reading every 30 minutes per building. I have an overview frontpage displaying the running totals for the buildings. From there you can drill through to a specific building to see the daily totals of the selected building (I have just over 2 months worth so far). From there there is another drill through level where you can see the usage per half hour for a specific day with comparisons to the same day last week and month etc. 

 

Buildings are graded A,B,C,D and what i'm trying to achieve is something that allows comparisons between a selected/filtered building against the top performers within their respective grade, ideally showing where they are placing against different percentiles (top 15) etc. 

 

I've been trying to configure this using the Power KPI visual but I can't seem to be able to reference a single building at the lowest end of the top 15% and also plot this comparatively with a selected building, does anyone have any experience with these kind of comparisons. Its a very simple model so far, with the consumption data joined to a building data table on branch a number key. I can attach some snaps of data if required.

 

Any help would be greatly appreciated. 

 

Thanks in advance, 

Ben 

 

6 REPLIES 6
benP
Frequent Visitor

2019-07-09_09-37-51.png2019-07-09_09-40-03.png

tex628
Community Champion
Community Champion

I would start by creating measures calculating the KPI values that you want to compare against. These measures should ignore all external filters and always produce the current value. 

As an example, if you want to compare against the average of buildings classified as "A",

Measure = 
Calculate( 
( [Consumtion] / [Duration] ) / [BuildingCount] , 
All( 'Buildings') , 
[Classifcation] = "A"
)

This measure should always produce the average of buildings classified "A" which means that if you put it in a table together with the normal calculation you should be able to use a slicer to filter on a specific building to compare.

/ J


Connect on LinkedIn
Anonymous
Not applicable

Hi @benP 

You can replace condition to use your selection fields to instead:

Measure =
CALCULATE (
    ( [Consumtion] / [Duration] ) / [BuildingCount],
    ALL ( 'Buildings' ),
    [Classifcation] IN VALUES ( Table[Column] )
)

Regards,

Xiaoxin Sheng

benP
Frequent Visitor

Thanks so much for you reply, 

 

In the measure it won't allow me to specifiy [classification] = 'A' as this is not a measure, 

 

Is there a way around this? 

 

Thanks, 

Ben 

tex628
Community Champion
Community Champion

I assume that classification is a column, so in that case it would be 'Table1'[Classification] = "A" instead in the filter statement. 


Connect on LinkedIn
tangutoori
Helper III
Helper III

please provide sample data...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.