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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Sum with Distinctcount

Hi Experts

 

How would you amend the following Measure to sum with Distinct count

Accounts Where Notice Has Been Logged (£) = CALCULATE(
DISTINCTCOUNT('STG Fact_To_Do'[Payzone_Ref]),
FILTER('STG Fact_To_Do','STG Fact_To_Do'[Payzone_Ref] in VALUES('STG Fact_Agreement'[Bill_To_Merchant_ID]) && 'STG Fact_To_Do'[Task_Results] in {"DDM Set Up Paper","DDM Set Up Phone","DDM Updated - Paper","DDM Updated - Phone","DDM set-up phone","DDM updated-phone"}))
 
My Sum Measure is
Annulaised Value = 
SUM(STG_FACT_Revenue[Annualised_Revenue])

 

 

1 ACCEPTED SOLUTION
vivran22
Community Champion
Community Champion

Hello @Anonymous 

 

Are you looking for to sum the STG_FACT_Revenue[Annualised_Revenue] based on the output of the measure of Accounts Where Notice Has Been Logged (£) ?

 

How are STG_FACT_Revenue & STG Fact_To_Do tables are related?

 

Can you share a sample data with the expected output?

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

View solution in original post

2 REPLIES 2
vivran22
Community Champion
Community Champion

Hello @Anonymous 

 

Are you looking for to sum the STG_FACT_Revenue[Annualised_Revenue] based on the output of the measure of Accounts Where Notice Has Been Logged (£) ?

 

How are STG_FACT_Revenue & STG Fact_To_Do tables are related?

 

Can you share a sample data with the expected output?

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

Anonymous
Not applicable

Many Thanks for the feedback 

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.