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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Invesco
Helper V
Helper V

Work out calls over a week

Hi Experts

 

Need a measure to sum the day_value based on the Distinctcount of CRM_Call_Name and where the Activity is "f2f" not ure the below is correct?

 

Invesco_0-1669660299072.png

 

this my meaure

SumValues = Calculate(distinctCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
                            FILTER(VALUES(act_rates_activity_volume_and_cf_days),
                            (act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f")))
1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Invesco 

 

I am a little bit confused to be honest since it is not described why your current measure does not give you the expected result.

 

Based on your information you can also try the following versions:

SumValues = 
CALCULATE(
   DISTINCTCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
   FILTER(
      act_rates_activity_volume_and_cf_days,
      act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f"
   )
)

 

or 

SumValues = 
CALCULATE(
   DISTINCTCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
      (act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f"
)

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

4 REPLIES 4
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Invesco 

 

I am a little bit confused to be honest since it is not described why your current measure does not give you the expected result.

 

Based on your information you can also try the following versions:

SumValues = 
CALCULATE(
   DISTINCTCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
   FILTER(
      act_rates_activity_volume_and_cf_days,
      act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f"
   )
)

 

or 

SumValues = 
CALCULATE(
   DISTINCTCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
      (act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f"
)

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
djurecicK2
Super User
Super User

Right, so what value does the measure return? 

djurecicK2
Super User
Super User

@Invesco ,

 Is that measure giving you the expected result? Can you calculate manually to confirm?

The answer is 12 f2f calls based on the image over the week. 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.