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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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