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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NewbieJono
Post Partisan
Post Partisan

Mapping Table

Hello all, i have a mapping table to group different transactions. 

 

we have a scenareo where i would like to have a duplicate mapping file with different gorupings. so ending up with two different mapping files but with different groups

 

then i would like be able touse a filter in a report to swap back and fore between the two diffrent mapping tables.

 

hope this makes sense

 

Capture.PNG

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @NewbieJono ,

Calculated columns are only calculated when you first define them and during a dataset refresh, it will not change by filters, it is a definite value, if you expect the value changes with filter, you can only use a measure.

 

In a measure, columns cannot be referenced directly, MAX function in a measure can return the current value in the same row of the column.

 

You can learn more about measures and calculated column in this article: calculated-measures-vs-calculated-columns

 

And according your provided,you could  test the below steps:

base table:

Table:

vluwangmsft_0-1650524318713.png

TableA:

vluwangmsft_1-1650524338697.png

TableB:

vluwangmsft_2-1650524353187.png

Relationship:

vluwangmsft_3-1650524370901.png

Step1, create slicer table,and keep the below relationship:

vluwangmsft_4-1650524417841.png

vluwangmsft_5-1650524427911.png

 

Step 2,create measure:

refer = IF(SELECTEDVALUE(Slicer[Type])="A",LOOKUPVALUE('Table A'[kind],'Table A'[Type],MAX('Table'[TYPE])),LOOKUPVALUE(TableB[Kind],TableB[Type],MAX('Table'[TYPE])))

 

then create visual:

vluwangmsft_6-1650524530478.pngvluwangmsft_7-1650524546170.png

If you need to map multiple columns, you need to create multiple conditional measures one by one.

 

 

 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @NewbieJono ,

Calculated columns are only calculated when you first define them and during a dataset refresh, it will not change by filters, it is a definite value, if you expect the value changes with filter, you can only use a measure.

 

In a measure, columns cannot be referenced directly, MAX function in a measure can return the current value in the same row of the column.

 

You can learn more about measures and calculated column in this article: calculated-measures-vs-calculated-columns

 

And according your provided,you could  test the below steps:

base table:

Table:

vluwangmsft_0-1650524318713.png

TableA:

vluwangmsft_1-1650524338697.png

TableB:

vluwangmsft_2-1650524353187.png

Relationship:

vluwangmsft_3-1650524370901.png

Step1, create slicer table,and keep the below relationship:

vluwangmsft_4-1650524417841.png

vluwangmsft_5-1650524427911.png

 

Step 2,create measure:

refer = IF(SELECTEDVALUE(Slicer[Type])="A",LOOKUPVALUE('Table A'[kind],'Table A'[Type],MAX('Table'[TYPE])),LOOKUPVALUE(TableB[Kind],TableB[Type],MAX('Table'[TYPE])))

 

then create visual:

vluwangmsft_6-1650524530478.pngvluwangmsft_7-1650524546170.png

If you need to map multiple columns, you need to create multiple conditional measures one by one.

 

 

 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

amitchandak
Super User
Super User

@NewbieJono ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

i have a list of trasactions which are grouped using the maping table.

e.g Trasaction 1-4 are group as group A in th mapping table.

 

however i would like another mapping table that groups things differently (as a test for the bsuinsess)

e.g Trasaction 1-4 are group as group B in the mapping table.

 

i am ok creating these two mapping tables, but is there a method to switch betweeen these two tables using filters. E,g i wish to by default show the data arranged using the firs mapping table. but i would like to switch to the second if to see how things change with the different mappings.

 

basically, i will have two mapping tables and need to switch the relationsips between both from a filter on a page

 

Capture.PNG

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors