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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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