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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
LuITS
Helper II
Helper II

Column of related Table breaks measure

Hello,

I have two Tables (A and B) and  have a meassure (using only data from A) which works fine in my table visual, but when i add a column from Table B to the visual, the meassure breaks.

 

SUMX(FILTER('A, 'A'[Flag]=1), 'A'[Value1] / 60 * 'A'[Value2])

 

I think the Problem is the many to many relatioship between A and B. For Key in A there are three rows in Table B matching B contains translations from differnt languages for that code.

 

When i switch the added collumn from don't ssummarize to First or Last the problem resolves. 

Normaly a slicer on the page should filter unessecery translation in Tbale B, but they appear when i add the collumn to my table visual.

 

Sorry for poor decription. But is there a way, maybe to Filter Table B in my measure with the selection made in my slicer, so i dont need to select first to get rid of unwanted translations?

6 REPLIES 6
Rupak_bi
Super User
Super User

Hi,

You can always filter tables by slicer provided the slicer column related to both the tables. For that you may need to create a key table. The details you have provided doesn't describe about table B and the relationship you have and also the issue you are facing. Please provide these details for right solution.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
Greg_Deckler
Community Champion
Community Champion

@LuITS Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sry for poor description.

Table A:

Value1Value2CodeFlagUSBRFR
60100011S1usS1brS1br
1060020S2usS2brS2br
3050031S3usS3brS3br

 

Table B:

CodeLanguageTrans
1USus1
1BRbr1
1FRfr1
2USus2
2BRbr2

2

FRfr2

3

USus3

3

BRbr3

3

FRfr3

 

Table C:

This Table is a Field Parameter containing a Shiftmodel with the 3 languages and Translations for each Shift. Its uses 3 Collumns from Table 1 (US, BR, FR). I use this Fieldparametertable as a Slicer to slelect the language for the report, respectifly filtering another slicer containig the translated shifts. To be honest i don't know

how i managed that the first slicer shows the Column Headers (US, FR, BR) and the second slicer show the translated Shifts. But it works.

LanguageLanguage Fields
US'Table A'[US]
BR'Table A'[BR]
FR'Table A'[CS]

 Slicer Example:

Language                           Shift

US (selected)                      S1us

BR (not selected)               S2us

CS (not selected)               S3us

 

Table relations:

Table A [Code]  *  ->  * Table B[Code]

Table C [Language] 1 -> * Table B[Language]

 

Visual Expected Output: (Slicer Selection US and S1us)

LanguageCodeTrans (Table B)Value1Measure
S1us1us1601000
S1us2us210 
S1us3us320250
Total  901250

 

Visual Output:

LanguageCodeTrans (Table B)Value1Measure
S1us1us1601000
S1us1us2601000
S1us1us3601000
S1us1br1601000
S1us1br2601000
...............
Totals  901250

 

The Table gets extrem long. It seems like that every Code in my Visualtable has a row for every Translation (all languages). When i slecect Select First and disble don't summarize vor Column Trans I get the expected results.

 

I dont rellay know what to do. Maybe you have a better solution for my Translationproblem i try to resolve with the field parameters which can help, or if i need a filter in my measure which filters the output by the selected language and shift.

Anonymous
Not applicable

Thanks for the replies from Greg_Deckler and Rupak_bi.

 

Hi @LuITS ,

 

Based on your description above, I have created the data and realized your requirement by changing the relationship between Table A and Table B. Here's what I did:

 

1.Create a new table:

vlinhuizhmsft_0-1729665330999.png

 

2.Create the following relationship:

vlinhuizhmsft_1-1729665575169.png

 

3.Result:

vlinhuizhmsft_2-1729666199249.png

 

Best Regards,
Zhu

 

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

Hi, thanks for your help.

I had a look at your file but its not quite the right outcome i want.

 

When selecting a language, i get the right shifts in the slicer and the right shift traslation in the table visual. 

But i also get a row for every translation of event code. When selected FR, i only want to have the FR translations of EventCode.

 

LuITS_1-1729677515108.png

When I look at the Data Table Outcome should have 3 rows.

LuITS_2-1729677639681.png

 

I treid a relationship between Language Table and Translation Table directly, but i cant activate it. I get Error: you cannot create a direct relationship between Translation and Data Table, as this would lead to ambiguity between Tables Language and Translations.

 

Can you help me with thi issue too?

Anonymous
Not applicable

Hi @LuITS ,

 

Could you please upload your file to a cloud storage (like OneDrive) and paste the link to that storage location in the post? This will help your problem to be solved in the best possible way. 

For the second question, you can try checking the existing relationship to set it to inactive status.

 

Best Regards,
Zhu

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.