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
ToddMate
Helper II
Helper II

Dividing One Measure against Another Measure.

Hi,

 

I have created two measures, one which calculates my total customers (M_Base) and the other which calculates my total losses for the month (M_Churn). Each of these measures have filters that return the result i am after.

 

When i try to create a new measure that divides M_Churn by M_Base, the filters that were within the measures i created are no longer used and the result that is returned is now a total of all of the values in the table/column. (should be a % value)

 

Sorry i am relatively new to Power BI so i apologise in advance if this is a simple thing to achieve but i can't find anything online that points me in the right direction.

1 ACCEPTED SOLUTION

Ah OK, so those filters are Visual level filters. They only apply to the current visual that you have highlighted.

 

If you want these filters to apply to everything on the page you have a couple of options.

 

1. If you want the user to be able to change these filters you can drag, Product and Month Ending on to your report page, but set them up using the filter visual, you can then either configure this to display a dropdown or a list and you can save the report with certain filters selected if you like. (and you should remove the existing filters first)

 

 2019-03 filter.png

 

2. But if you don't want the end users to change these filters you should create them in the "Page level filters" section in which case they will apply to every visual on the current page. Or if you have multiple pages and want the same filters across every page you can create the filters down in the "Report level filters" section

View solution in original post

6 REPLIES 6
d_gosbell
Super User
Super User

If you've definitely created these as Measures, not Calculated Columns this should just work. 

 

Can you paste in the forumulas for these 3 measures so that we can see what you have done?

Measure1

M_Disc = sum(SIOs[Disconnected]) 
 
Measure2
M_Base = sum(SIOs[EventValue])
 
Measure3
M_Result = DIVIDE([M_Disc], [M_Base])


@ToddMate wrote:

Measure1

M_Disc = sum(SIOs[Disconnected]) 
 
Measure2
M_Base = sum(SIOs[EventValue])
 
Measure3
M_Result = DIVIDE([M_Disc], [M_Base])

Umm, there are no filters in any of those expressions. I was expecting to see something like CALCULATE( SUM( ...) , <filter expression> ) 

 

Where have you applied your filters? If you are applying filters on a specific visual you would either need to apply the same filters to any new visuals you create or look at moving your filters into a filter control or up to the page or report level.

 

Can you show us a screenshot of where you have setup these filters that you are talking about?

Hi d_gosbell,

 

Yes i used visual filters assuming this was the correct way to do it. Is there a better way to achieve this? (Guess this explains why it didnt work 🙂 )

 

Really appreciate your assistance here.

 

PBI.JPG

 

 

Ah OK, so those filters are Visual level filters. They only apply to the current visual that you have highlighted.

 

If you want these filters to apply to everything on the page you have a couple of options.

 

1. If you want the user to be able to change these filters you can drag, Product and Month Ending on to your report page, but set them up using the filter visual, you can then either configure this to display a dropdown or a list and you can save the report with certain filters selected if you like. (and you should remove the existing filters first)

 

 2019-03 filter.png

 

2. But if you don't want the end users to change these filters you should create them in the "Page level filters" section in which case they will apply to every visual on the current page. Or if you have multiple pages and want the same filters across every page you can create the filters down in the "Report level filters" section

Fantastic and really appreciate your replies.

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.