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

Calculate column error

Hi!

I created a measure and it doesn't work completely. Can you help me solve it?

I copy the measure below the image.

  • COLUMN "% Cob. Cuota 1" < 60% (does not apply INCENTIVO)

Thanks for your help.

Best regards, Guillermo.-

Sin.png

 
Incentivo =
VAR _ObjetivoVentas =
RELATED(Tabla_Agentes[Objetivo_Venta_1])
VAR _ObjetivoCobranza =
RELATED(Tabla_Agentes[Objetivo_%_Cobranza])
VAR _PorcCobCta1 =
DIVIDE('L 1613'[PorCobCuo1], _ObjetivoCobranza)
VAR _PorcVenta =
DIVIDE(Totales[Total Vendidas], _ObjetivoVentas)
RETURN
IF(
_PorcCobCta1 >= 1
&& _PorcVenta >= 1,
IF(
_PorcCobCta1 >= 1
&&_PorcVenta >= 1.2
,
RELATED(Tabla_DIM_Incentivos[Incentivo_2]),
RELATED(Tabla_DIM_Incentivos[Incentivo_1])
)
)
 
2 REPLIES 2
v-zhengdxu-msft
Community Support
Community Support

Hi @GuilleLus 

 

Could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

 

Best Regards

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

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.