Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
i have requirement like this
create a 'consumption rate' metric, which takes into consideration order size and frequency.
Example: doctor office purchases 4 cases, and then the following month purchases 8 cases. This implies they have used 4 cases / month, and so their reorder would last for two months
Thanks
Hi @Ruthwiksai_2021 ,
In order to provide you a suitable solution, could you please share some sample data in your tables(exclude sensitive data) and your expected result with backend logic and special examples. Thank you.
1. Sample data
Col1 | Col2 | Col3 |
xx | xx | xx |
xx | xx | xx |
2. Calculation logic
consumption rate=(number of cases)/(count of months in selected date period)?
3. Expected result with special examples
Col1 | Col2 | consumption rate |
xx | xx | ? |
xx | xx | ? |
Best Regards
@Ruthwiksai_2021 , It would like
divide( count(table[Cases]), distinctcount(Table[Year Month]))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
User | Count |
---|---|
103 | |
88 | |
78 | |
71 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |