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

Como unir metas de comisión para un vendedor

Hola tengo un problema el cual necesito algun prefijo parecido al intervalmatch de qlikview.

Este es el ejemplo:

 

Tengo que unir metas, ya que si un vendedor hace una venta por un smartphone entre el 10 y el 20 de diciembre se gana una comision de 50 dolares, pero si vende el mismo smartphone entre el 20 y 30 de diciembre la comision es de 70 dolares.

A eso debo agregar que si en la venta se suma un smartwatch aumenta la comision para el vendedor en 40 dolares.

 

Por favor si alguien sabe de alguna manera que pueda calcular esto en PowerBi me salva la vida ya que esto es del trabajo y la verdad no me habia tocado ver algo de este tipo.

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

I have tried to create a sample. Please have a try.

11.PNG

Create a measure.

check = var day_month= DAY(SELECTEDVALUE('Table'[Date]))
var fan = IF(day_month <=20&&day_month>=10,50,IF(day_month>20,70,BLANK()))
var result= IF(SELECTEDVALUE('Table'[fu])="watch",fan+40,fan)
return result

22.PNG

If I have misunderstood your meaning, please provide some sample data and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.

Top Solution Authors