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
Anonymous
Not applicable

Create Measure based on text columns in table and parameters

I want to create a measure based on parameters. i have a table which contains site type, so based on site type i have to create a parameter. the parameter is then used to create a measure.

eg :

table 1 :

Ticket#,assignment_group,site_type

table 2 :

engineer name,fte count,assignment group

parameter 1 :

value = 7

parameter 2 :

value = 10

 

i need to create a measure where

if site_type = x then parameter1*fte count

if site_type = y then parameter2*fte count

 

i will use the above measure to show in graph,matrix visualization by group name

eg

Assignment_GroupTickets#FTEMeasure I want to createAvg Tickets Per Day
A9972.22212.4625
B9732.22211.44705882
C94833011.42168675
D88122011.0125
E7392209.2375
F3281104.61971831

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Assume these two what if parameter with measures p1 and p2 and fte count is a measure too

 

Sumx(values(Table[Assignment_Group]) , if(Table[Site Type]= "X", [P1]*[fte count], [fte count]*[P2]) )

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

brilliant and thanks

amitchandak
Super User
Super User

@Anonymous , Assume these two what if parameter with measures p1 and p2 and fte count is a measure too

 

Sumx(values(Table[Assignment_Group]) , if(Table[Site Type]= "X", [P1]*[fte count], [fte count]*[P2]) )

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.