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

Segmenting A Measure Within A New Measure

Hi guys,

So - say I've got a measure that measures conversion rate. Let's say the overall conversion rate (called "CNVR" as a calculated measure) is 5%. Let's say that varies by product:

Product A = 7.5%
Product B = 6%
Product C = 3%

Now, lets say I wanted to insert that calculated measure within a new mesaure. E.g if I was trying to project how many leads I'd require to hit my targets, I'd divide my targets by my conversion rate:

E.g. Leads Required = [Sales Target Volume]/[CNVR]

Which would take my sales target volume and divide it by 5%.

However, say I wanted to have that field pull in the conversion rate specifically of Product A, *without* segmenting any other part of the page, how would I do that?

Basically I want to have:

Leads Required = [Sales Target Volume]/[Product A CNVR]. I can insert Product as a slicer on the page, but I don't want to do that.

Thanks,

Bob

1 ACCEPTED SOLUTION

Thanks guys, think I've solved it by using CALCULATE(*MEASURE*,FILTER) - sorry if I explained it poorly but looks like it's done the job. Help is always appreciated!

View solution in original post

3 REPLIES 3
v-xjiin-msft
Solution Sage
Solution Sage

Hi @bobbybamber,

 

Generally, if you only want to get the conversion rate of Product A. You can add a Filter() in your measure to filter the product only equals to A.

 

However since we don't know your measure formula or your table structure. It is hard for us to guess how to add a specfic Filter(). So could you please share us more detailed information like your source table structure, measure formula or some sample data if possible? Otherwise, we can only make a guess.

 

Thanks,
Xi Jin.

Thanks guys, think I've solved it by using CALCULATE(*MEASURE*,FILTER) - sorry if I explained it poorly but looks like it's done the job. Help is always appreciated!

Greg_Deckler
Super User
Super User

If you have a table for your conversion rates, you should be able to use LOOKUPVALUE in your measure.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.