Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
madureirav
New Member

DAX measure has wrong value on display return

Hello,
I ended up identifying a strange result in a DAX.
Applying the context here in this brief text, it is a summary of total sales names, being divided by an accumulated daily share.

Below, one exemple.

image.png

 

 

 

 

 

 

 

 

 

 

 

In yellow, BRL 13,587.64/0.2727 = BRL 49,826.32. Is correct.In orange, BRL 383.29/0.2727 = BRL 8,976.35. By the logic of the calculation, it should return R$ 1,405.54...

The DAX involved in the calculation are:

current GMV=CALCULATE(SUMX(fPurchase, fPurchase[gmv]),dCalendar[actual_month] = "Yes")

 

accumulated goal =
CALCULATE(
[Meta],
FILTER(
ALLSELECTED(dCalendar),
dCalendario[Date] <= MAX(dCalendario[Date])
), dCalendario[actual_month] = "Yes") //Here I accumulate the daily share to complement other calculations.

Forecast = DIVIDE(GMV Atual, Meta acumulada, 0)

I ran several more tests using different templates and frameworks, but the result turned out to be the same.

 

 

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @madureirav ,

 

Please share a sample file with me and show me a screenshot with the result you want.

This will make us easier for me to find the solution.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.