cancel
Showing results for 
Search instead for 
Did you mean: 
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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

Try

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

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors