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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.