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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Jeanxyz
Post Prodigy
Post Prodigy

summarize data from two dimension tables with no relationship

I want to create a summary table, which showed planned days (measure) based on project ID and year month. Below is my try, but it seems DAX doesn't allow for quoting two dimension tables with no relationship. 

 

 

Below is my try which doesn't work: 

error_table = generate(summarize(Dim_Project_All,Dim_Project_All[Project ID_adj],Dim_Project_All[Project Name_adj],[Project Hrs Per Day]), selectcolumns(calendar_slicer, "Year Month",'calendar_slicer'[Year Month Name]), "Planned Days", [remaining days_YM(M)])
 
this formula however works:
good_table = summarize(Dim_Project_All,Dim_Project_All[Project ID_adj],Dim_Project_All[Project Name_adj],[Project Hrs Per Day], "Planned Days", [remaining days_YM(M)])

 

 

1 ACCEPTED SOLUTION
Jeanxyz
Post Prodigy
Post Prodigy

solved! This works: 

test table = summarizecolumns(Dim_Project_All[Project ID_adj],Dim_Project_All[Project Name_adj],dim_project_all[Project Hrs Per Day], 'calendar_slicer'[YearMonth Name],"Planned Days",[remaining days_YM(M)])

View solution in original post

1 REPLY 1
Jeanxyz
Post Prodigy
Post Prodigy

solved! This works: 

test table = summarizecolumns(Dim_Project_All[Project ID_adj],Dim_Project_All[Project Name_adj],dim_project_all[Project Hrs Per Day], 'calendar_slicer'[YearMonth Name],"Planned Days",[remaining days_YM(M)])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.