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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amylewisAZ
Frequent Visitor

DAX help needed when dealing with multiple bridge tables (many to manys) and multiple dates

Hi All,

 

I am struggling to get the correct DAX when 

 

Data Model:

amylewisAZ_1-1616517651107.png

 

Formulas:

-- Awarded Grants Counts
Total Grants Awarded = CALCULATE(DISTINCTCOUNT('Grant Award Info'[GrantID])
,USERELATIONSHIP('Date'[Date], 'Grant Award Info'[AwardDate])
)

TotalDonorBudgetApproved = CALCULATE(SUM('Grant Award Info'[DonorLOABudget]),USERELATIONSHIP('Date'[Date], 'Grant Award Info'[AwardDate]))

 

-- Not Awarded:

Total Grants NotAwarded = CALCULATE(
DISTINCTCOUNT('Grant Pipeline History'[GrantKey]),
FILTER (ALL('Grant Pipeline History'[Grant Status]),
'Grant Pipeline History'[Grant Status]= "Not Awarded"),USERELATIONSHIP('Date'[Date],'Grant Pipeline History'[Status Date]))

 

Total Not Awarded $ = CALCULATE(
SUM('Grant Submission Info'[TotalDonorBudgetSubmitted]),
FILTER (ALL('Grant Pipeline History'[Grant Status]),
'Grant Pipeline History'[Grant Status]= "Not Awarded"),USERELATIONSHIP('Date'[Date],'Grant Pipeline History'[Status Date]))

 

Issue:

here you can see the issue... top one is the totals with only the GratDetail.Domain (no many to many relationships.... 2nd one is with Region and the totals... you can see the grand totals are correct, but the details are not. last one is area and same issue.

 

amylewisAZ_2-1616517726184.png

 

Any Advice?

 

Thank you in advance,

Amy

1 REPLY 1
Anonymous
Not applicable

Hello @amylewisAZ 
Can you please share your pbix file after removing the sensitive data?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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