Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I am struggling to get the correct DAX when
Data Model:
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.
Any Advice?
Thank you in advance,
Amy
Hello @amylewisAZ
Can you please share your pbix file after removing the sensitive data?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
38 | |
26 | |
20 | |
15 | |
8 |
User | Count |
---|---|
71 | |
47 | |
46 | |
20 | |
16 |