Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Experts
Based on the sample data below.
| crm_call_name | Date | day_name_short | week_start_date | week_end_date | month_desc_short | activity_type_1 | product_name_ | data_value |
| C027449642 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449644 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449744 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027475422 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449645 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027475423 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449641 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449640 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449741 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Apples | 1 |
| C027449646 | 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Trelegy | 1 |
| C027475443 | 24-Nov-22 | Thu | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Oranges | 1 |
| C027449751 | 24-Nov-22 | Thu | 21-Nov-22 | 27-Nov-22 | Nov | f2f | Oranges | 1 |
| 21-Nov-22 | Mon | 21-Nov-22 | 27-Nov-22 | Nov | customer_facing_day | 1 | ||
| 23-Nov-22 | Wed | 21-Nov-22 | 27-Nov-22 | Nov | customer_facing_day | 1 | ||
| 25-Nov-22 | Fri | 21-Nov-22 | 27-Nov-22 | Nov | customer_facing_day | 1 | ||
| 22-Nov-22 | Tue | 21-Nov-22 | 27-Nov-22 | Nov | customer_facing_day | 1 | ||
| 24-Nov-22 | Thu | 21-Nov-22 | 27-Nov-22 | Nov | customer_facing_day | 1 | ||
1. John has 5 cutsomer facing days
Measure
Solved! Go to Solution.
Hi, @Anonymous ;
You could try this measure.
Weekly Rates =
Var Day_Count= CALCULATE(SUM(act_rates_activity_volume_and_cf_days[data_value]),FILTER(ALL(act_rates_activity_volume_and_cf_days),
act_rates_activity_volume_and_cf_days[activity_type_1] = "customer_facing_day"))
Var Activity_CT= CALCULATE(SUM(act_rates_activity_volume_and_cf_days[data_value]),
act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f")
Return
Divide(Activity_CT,Day_Count,0)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
You could try this measure.
Weekly Rates =
Var Day_Count= CALCULATE(SUM(act_rates_activity_volume_and_cf_days[data_value]),FILTER(ALL(act_rates_activity_volume_and_cf_days),
act_rates_activity_volume_and_cf_days[activity_type_1] = "customer_facing_day"))
Var Activity_CT= CALCULATE(SUM(act_rates_activity_volume_and_cf_days[data_value]),
act_rates_activity_volume_and_cf_days[activity_type_1] = "f2f")
Return
Divide(Activity_CT,Day_Count,0)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The issue is when i filter by Product_name and any other column to get lower level result - it set the customer facing days value to zero....
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |