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

RelatedTable Context

Hello, is it possible to change the context of evaluation of a relatedtable formula?

 

Origin formula : sumx(RELATEDTABLE(Mapping_Ventilation);Mapping_Ventilation[Taux BRANCH])

 

I'd like to do something like that :

 

sumx(RELATEDTABLE(ALL(Mapping_Ventilation));Mapping_Ventilation[Taux BRANCH])

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @armand453

Do you create this formula in another table instead of Mapping_Ventilation?

Why not calculate the sum column in the Mapping_Ventilation table, then relate this column to this table by "RELATED" function?

Or, could you show what expected results after changing the formula so that we can analyze more sufficent?

 

Best Regards

Maggie

Zubair_Muhammad
Community Champion
Community Champion

@armand453

 

What if you use

 

sumx(ALL(Mapping_Ventilation);Mapping_Ventilation[Taux BRANCH])

 

or simply

 

sumx(Mapping_Ventilation;Mapping_Ventilation[Taux BRANCH])

 

 


Regards
Zubair

Please try my custom visuals

Thanks for your answer but, the first solution doesnt work.

 

And the second doesnt fit beacause I have a second table whose name is "DATA" that is related to "Mapping_Ventilation" and I want to change the context of this table before the evaluation of Relatedtable("Mapping_Ventilation"), I don't know if it is possible...

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.