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
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

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.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors