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

How to create a new measure using slicer data

I am using a slicer, so when I click on one customer in the splicer the "Tachometer" visual displays the average CpM (average Case per Minute).   But actually I am looking at displaying the goal 10% above the Max average CpM and another 10% below the Average CpM to display a range.  This needs to change for each different customer I click on in the splicer.  So I understand I need to create 2 new measures one for the goal and one for the lower number:  

 

Goal = (Max of Avg CpM) + (Max of Avg CpM * .1) 

Min = (Avg CpM) - (Avg CpM * .1)

 

Thanks 

 

1 ACCEPTED SOLUTION

Hi @DaveC123,

 

You can use MAX function to get "Max of Avg CpM". The formulas below are for your reference. Smiley Happy

Goal = MAX('Customer Indvl Data'[Avg CpM])*1.1
Min = MAX('Customer Indvl Data'[Avg CpM])*0.9

r6.PNG

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Employee
Employee

Hi @DaveC123,

 

Could you post your table structures with some sample data, and your expected result? So that we can better assist on this issue. Smiley Happy

 

Regards

Sorry about not posting the data.  Here is an example:

 

Month	         Customers	QTY	Minutes	Avg CpM
4/1/2016	Customer A	46,579	30,794	1.5
4/1/2016	Customer B	5,349	5,820	0.9
5/1/2016	Customer A	34,349	15,880	2.2
5/1/2016	Customer B	5,369	1,659	3.2
6/1/2016	Customer A	54,235	26,118	2.1
6/1/2016	Customer B	4,487	1,428	3.1
7/1/2016	Customer A	45,450	18,242	2.5
7/1/2016	Customer B	4,881	1,007	4.8
8/1/2016	Customer A	52,952	24,127	2.2
8/1/2016	Customer B	3,658	603	6.1
				
				
	Goal should be	Customer A =	2.75	
	Goal should be	Customer B =	6.71	
				
	Min should be 	Customer A =	2.25	
	Min should be 	Customer B =	5.49	

In thew Value Fields I can choose "Max of Avg CpM" but I can not seem to add it on the DAX, correctly.

 

New Measure = Sum('Customer Indvl Data'[Avg CpM]*.1)+'Customer Indvl Data'[Avg CpM])

 

THank you,

DaveC123

 

 

 

Hi @DaveC123,

 

You can use MAX function to get "Max of Avg CpM". The formulas below are for your reference. Smiley Happy

Goal = MAX('Customer Indvl Data'[Avg CpM])*1.1
Min = MAX('Customer Indvl Data'[Avg CpM])*0.9

r6.PNG

 

Regards

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.