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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
WTAS80486
Helper IV
Helper IV

Group by dax measure based on column from another table

I have a table A

Person ID HoursWK ID
AME3740.522335
AME3740.511223
BBO243666223
BBO2431.511223
BBO2430.566223
BCO570.522335
BCO570.511223
CPF0600.511223
CPF0600.566223
CPF0600.522335
   
   
   
   
   
   
   

 

another table B

WK ID Status date 
2233504-2022
1122304-2022
6622301-2023

 

They are connected by a WK ID

 

I want to create a DAX measure to sum hours based on person ID from table A and Status date from table B

 

so measure would give for AME374 for 04-22 , hours= 1 since both WK ID fall in 04-2022

2 REPLIES 2
WTAS80486
Helper IV
Helper IV

Person ID is in different table A and status in table B and they are connected by WK ID, s a DAX measure has be created to sum hours for each person for each month

wdx223_Daniel
Super User
Super User

1,put the Person ID in the row, and Status Date in the column

2,create a mearsure, and put it in the value area

TotalHours=SUM(TableA[Hours])

the you can get this

wdx223_Daniel_0-1676424712319.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.