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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Faracla
Frequent Visitor

Measure return wrong result when unfiltered

Dear community
i have a problem with a measure returning wrong result when I unfliter.
I have a slicer called "CarrierName", and when i select a specific carrier, the result of "WeightShareMonth" is showing correct , 98.96%. (screen below)

Faracla_0-1680508033490.png

 


When I unselect the specific carrier from the slicer, the value of "WeightShareMonth" changes returning 1.14% (screen below)

Faracla_1-1680508050297.png


WeightShareMonth is calculated as per below:

WeightShareMonth =
var test =
SUMX(
    SUMMARIZE(
        DIM_Tenders,
        DIM_Tenders[CarrierCode],
        DIM_Tenders[LaneCode],
        DIM_Tenders[LoadMonth*LaneNumber],
        DIM_Tenders[Mode],
        "x",
        [WeightShareMeasure],
        "y",
        [__FinalShareFullMonth]
    ),
    [x]*[y]
)
var test2=
[WeightShareMeasure]*[__FinalShareFullMonth]
return
IF(
    HASONEVALUE(DIM_Tenders[LoadMonth*LaneNumber]),
    test2,
    ROUNDUP(test,4)
)

Anyone has an advice on how to solve this? When unfiltered the result should be the same 
thanks in advacne
1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Faracla 

 

Can you provide some sample data about the fields involved in your formula? Sensitive information can be removed in advance.

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.