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
ianhyj
Regular Visitor

Create table with 2 dimension from 2 table and a measure value

Hello All,

 

I have 3 simple tables (2 Dim tables and 1 fact table) that look like below

 

ianhyj_1-1652559785638.pngianhyj_2-1652559801054.pngianhyj_3-1652559820037.png

 

And the relationships among the 3 tables look like this

ianhyj_6-1652559965885.png

 

 

I also created a measure which is calculated like this

ianhyj_5-1652559935076.png

 

I am trying to create a new datatable via DAX that has informaiton for jurisdiction, year and the measure, kinda look like this

ianhyj_7-1652560057824.png

 

 

I am able to create this in the dashboard with visualizaitons, but when I try to create this with dax, I got the error message below. Could you help me explain why this is happening and how can I achieve what I intended with DAX?

 

ianhyj_0-1652559751025.png

 

Thank you all so very much. 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

New Table = SUMMARIZECOLUMNS( 'Dim Jurisdiction'[Jurisdiction], 'DimYear'[Tax Year], "Measure %", [Measure %])

View solution in original post

2 REPLIES 2
ianhyj
Regular Visitor

Hi @johnt75 ,

 

Thank you so much!

johnt75
Super User
Super User

Try

New Table = SUMMARIZECOLUMNS( 'Dim Jurisdiction'[Jurisdiction], 'DimYear'[Tax Year], "Measure %", [Measure %])

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.