Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
I want to calculate the Standard Deviation for a specific product
For that, I have a sales table from the last 180 days with daily granularity
(Date, product, vendor, items sold)
If a product had 10 items sold in day 1 and 0 items sold in day 2, it will only show up in day 1.
For that reason, I need to know how to take in consideration in a measure the days without sales ?
In SQL, it is just a matter of doing a cross join between date dimension and sales table, and then apply the standard deviation formula. But, what about PBI ? How can I do it in a measure ?
Thanks a lot
Diego
Solved! Go to Solution.
Hi @Anonymous,
You can use the FILTER function to avoid days without any sales from your calculations.
Example:
Measure = CALCULATE([Your Measure],FILTER('Table','Table'[Sales]=0))
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison
I want to take in consideration days without sales !!
User | Count |
---|---|
12 | |
11 | |
8 | |
8 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |