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
Analitika
Post Prodigy
Post Prodigy

Divide problems

Have some problems with measures

 

1. Wrong divide so 22670/21 = 1 079.52, but measure % = divide([5],[6000])  return 119747,48 

 

Analitika_0-1624358634983.png

 

 

2. measure % = divide([5],[6000])  return 119747,48 % but should return 1197,47 % like measure Marge, but something went wrong, all measure is same

 

 

measure 5 = CALCULATE(
sumx(Table1, [SUM_CRE]-[SUM_DEB]),
FILTER(CodeTable,left([sas_kod],1)="5"))

 

measure 6 = CALCULATE(
sumx(Table1, [SUM_CRE]-[SUM_DEB]),
FILTER(CodeTable,left([sas_kod],1)="6"))

 

measure 6000 = CALCULATE(
sumx(Table1, [SUM_CRE]-[SUM_DEB]),
FILTER(CodeTable,left([sas_kod],4)="6000"))

 

measure [BP] = [5]-[6]

measure marge = DIVIDE([BP],[5])
1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Analitika ,

 

Unfortunatly,I don't know your data model. Using your measure works well in my test file. If the problem still exists, can you tell me your data model so that I can do more tests.

Vlianlmsft_0-1624600023049.png

 

 

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

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.