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
Kumshan450
Helper III
Helper III

Context Transition Issue

In the below image, you can see that there are different results for the Fabrikam brand. 

 

Context Transition issue.JPG

 

The following are the dax measures. 

Fabrikam Sales= sumx(

filter(Sales,

Related(Product[Brand])="Fabrikam"
),[Sales Amount)

 

Contosa Sales= sumx(

filter(Sales,

Related(Product[Brand])="Contoso"
),[Sales Amount)

 

I know that the above DAX measures are not the correct approach.  but i want to understand the context transitions issues in the above measures.  Datalink Path shared. 

 

I wanted to know why Fabrikam Sales measure value is not matching with the Fabrikam Sales Amount Value. My doubt is that if there are context transitions issues in Fabrikam Sales then the same is applicable for Contoso brand. How ContosaSales Measure is successful. Why it did not show the difference in values. I want to know the row value of fabrikam Sales that have resulted into difference of values. 

 

This is required for understanding purposes. 

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Kumshan450 

So far, I localize a diffrenece here

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

6 REPLIES 6
Kumshan450
Helper III
Helper III
az38
Community Champion
Community Champion

@Kumshan450 

there is no access to your data sample, please, check access policy


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

az38
Community Champion
Community Champion

@Kumshan450 

So far, I localize a diffrenece here

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
az38
Community Champion
Community Champion

@Kumshan450 

from the first sight I see two options here

1. a complex measure like

Sales by Brand = calculate([Sales Amount],
    ALLEXCEPT(Sales, 'Product'[Brand]))

2. a fabrikam Measure

FabrikamSales = 
IF(
SELECTEDVALUE('Product'[Brand])="Fabrikam", 
calculate([Sales Amount], 'Product'[Brand]="Fabrikam"), 
BLANK()
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thank you very much. 

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.