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
zanemj
Regular Visitor

Comparing the same measure against itself with different filters

Hello all, I am having trouble figuring out how to compare the same measure against itself while being altered by different filters. 

 

For example, I am creating a dashboard to compare the emissions of a specific site location (on the left) against the average of many site locations (on the right). The averages on the right can be filtered by a slicer that can be filtering by Region, Business Unit, and Facility Type. So there are 3 filtering criteria that can be selected. The left is only examining one facility at a time, the Facility Names. In the example below, the site on the left has been selected and the right side is the average for all Manufacturing sites, but could theorectically be honed down to Manufacturing, Business Unit B, Region: America, etc. 

 

InkedPOWERBI comparison 4 question marked.jpg

 

I want to add a measure that calculates the percent difference between the site selected and the average on the right side. So if we were looking at Electricity Usage, I want a little logo that shows the site on the left is 17% greater than that of the average for all manufacturing sites. This is the same measure however, just the one on either side is being altered by different slicers. The measure is FilteredElectricity[ElecUsageAvg] and I want to be able to compare it to itself based on what the slicers currently have selected. I attached a table with some data just to help visualize what I'm working with, any help here would be greatly appreciated!

 

 

Facility NamesRegionBusiness UnitFacility TypeElec Usage
DetroitAmericaUnit AFactory1,000,000
New YorkAmericaUnit BFactory2,000,000
GlasgowEuropeUnit AOffice30,000
FrankfurtEuropeUnit AOffice50,000
3 REPLIES 3
lbendlin
Super User
Super User

you cannot measure a measure.  You will have to create a separate measure that implements the comparison logic from scratch.

How do I implement the comparison logic in side a new measure that accounts for the changing slicers?

Measures operate within the filter context - which automatically includes the slicer choices. So you get that part "for free".

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.